@burdenoff/cli-sdk 2026.1201.1 → 2026.1202.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (242) hide show
  1. package/dist/chunk-BGNPGKJM.js +1 -0
  2. package/dist/{chunk-ASSY2L5R.js → chunk-E6F56R4K.js} +3 -3
  3. package/dist/chunk-N7EXKGE2.js +34 -0
  4. package/dist/core/index.cjs +9 -9
  5. package/dist/core/index.d.cts +2 -2
  6. package/dist/core/index.d.ts +2 -2
  7. package/dist/core/index.js +1 -1
  8. package/dist/index.cjs +9 -9
  9. package/dist/index.d.cts +1 -1
  10. package/dist/index.d.ts +1 -1
  11. package/dist/index.js +1 -1
  12. package/dist/{module-BNVKV_pI.d.ts → module-DWSAfs3k.d.cts} +20 -19
  13. package/dist/{module-BNVKV_pI.d.cts → module-DWSAfs3k.d.ts} +20 -19
  14. package/dist/modules/adaptercloud/index.cjs +38 -38
  15. package/dist/modules/adaptercloud/index.d.cts +1 -1
  16. package/dist/modules/adaptercloud/index.d.ts +1 -1
  17. package/dist/modules/adaptercloud/index.js +2 -2
  18. package/dist/modules/artistrybase/index.cjs +50 -50
  19. package/dist/modules/artistrybase/index.d.cts +1 -1
  20. package/dist/modules/artistrybase/index.d.ts +1 -1
  21. package/dist/modules/artistrybase/index.js +2 -2
  22. package/dist/modules/assethandler/index.cjs +32 -32
  23. package/dist/modules/assethandler/index.d.cts +1 -1
  24. package/dist/modules/assethandler/index.d.ts +1 -1
  25. package/dist/modules/assethandler/index.js +2 -2
  26. package/dist/modules/atheletebridge/index.cjs +34 -34
  27. package/dist/modules/atheletebridge/index.d.cts +1 -1
  28. package/dist/modules/atheletebridge/index.d.ts +1 -1
  29. package/dist/modules/atheletebridge/index.js +2 -2
  30. package/dist/modules/auth/index.cjs +34 -34
  31. package/dist/modules/auth/index.d.cts +1 -1
  32. package/dist/modules/auth/index.d.ts +1 -1
  33. package/dist/modules/auth/index.js +4 -4
  34. package/dist/modules/billing/index.cjs +18 -18
  35. package/dist/modules/billing/index.d.cts +1 -1
  36. package/dist/modules/billing/index.d.ts +1 -1
  37. package/dist/modules/billing/index.js +2 -2
  38. package/dist/modules/brainyrich/index.cjs +45 -45
  39. package/dist/modules/brainyrich/index.d.cts +1 -1
  40. package/dist/modules/brainyrich/index.d.ts +1 -1
  41. package/dist/modules/brainyrich/index.js +2 -2
  42. package/dist/modules/buildmyiq/index.cjs +32 -32
  43. package/dist/modules/buildmyiq/index.d.cts +1 -1
  44. package/dist/modules/buildmyiq/index.d.ts +1 -1
  45. package/dist/modules/buildmyiq/index.js +2 -2
  46. package/dist/modules/channels/index.cjs +12 -12
  47. package/dist/modules/channels/index.d.cts +1 -1
  48. package/dist/modules/channels/index.d.ts +1 -1
  49. package/dist/modules/channels/index.js +2 -2
  50. package/dist/modules/collabkin/index.cjs +34 -34
  51. package/dist/modules/collabkin/index.d.cts +1 -1
  52. package/dist/modules/collabkin/index.d.ts +1 -1
  53. package/dist/modules/collabkin/index.js +2 -2
  54. package/dist/modules/comradecircle/index.cjs +41 -41
  55. package/dist/modules/comradecircle/index.d.cts +1 -1
  56. package/dist/modules/comradecircle/index.d.ts +1 -1
  57. package/dist/modules/comradecircle/index.js +2 -2
  58. package/dist/modules/conversations/index.cjs +32 -32
  59. package/dist/modules/conversations/index.d.cts +1 -1
  60. package/dist/modules/conversations/index.d.ts +1 -1
  61. package/dist/modules/conversations/index.js +2 -2
  62. package/dist/modules/coolandlovely/index.cjs +41 -41
  63. package/dist/modules/coolandlovely/index.d.cts +1 -1
  64. package/dist/modules/coolandlovely/index.d.ts +1 -1
  65. package/dist/modules/coolandlovely/index.js +2 -2
  66. package/dist/modules/cosmicintersection/index.cjs +43 -43
  67. package/dist/modules/cosmicintersection/index.d.cts +1 -1
  68. package/dist/modules/cosmicintersection/index.d.ts +1 -1
  69. package/dist/modules/cosmicintersection/index.js +2 -2
  70. package/dist/modules/crewfoundry/index.cjs +70 -70
  71. package/dist/modules/crewfoundry/index.d.cts +1 -1
  72. package/dist/modules/crewfoundry/index.d.ts +1 -1
  73. package/dist/modules/crewfoundry/index.js +2 -2
  74. package/dist/modules/devportal/index.cjs +23 -23
  75. package/dist/modules/devportal/index.d.cts +1 -1
  76. package/dist/modules/devportal/index.d.ts +1 -1
  77. package/dist/modules/devportal/index.js +2 -2
  78. package/dist/modules/ecoimpacthub/index.cjs +41 -41
  79. package/dist/modules/ecoimpacthub/index.d.cts +1 -1
  80. package/dist/modules/ecoimpacthub/index.d.ts +1 -1
  81. package/dist/modules/ecoimpacthub/index.js +2 -2
  82. package/dist/modules/eventfullymanaged/index.cjs +92 -92
  83. package/dist/modules/eventfullymanaged/index.d.cts +1 -1
  84. package/dist/modules/eventfullymanaged/index.d.ts +1 -1
  85. package/dist/modules/eventfullymanaged/index.js +2 -2
  86. package/dist/modules/export/index.cjs +14 -14
  87. package/dist/modules/export/index.d.cts +1 -1
  88. package/dist/modules/export/index.d.ts +1 -1
  89. package/dist/modules/export/index.js +2 -2
  90. package/dist/modules/files/index.cjs +11 -11
  91. package/dist/modules/files/index.d.cts +1 -1
  92. package/dist/modules/files/index.d.ts +1 -1
  93. package/dist/modules/files/index.js +2 -2
  94. package/dist/modules/fluidgrids/index.cjs +29 -29
  95. package/dist/modules/fluidgrids/index.d.cts +1 -1
  96. package/dist/modules/fluidgrids/index.d.ts +1 -1
  97. package/dist/modules/fluidgrids/index.js +3 -3
  98. package/dist/modules/ggnomad/index.cjs +21 -21
  99. package/dist/modules/ggnomad/index.d.cts +1 -1
  100. package/dist/modules/ggnomad/index.d.ts +1 -1
  101. package/dist/modules/ggnomad/index.js +2 -2
  102. package/dist/modules/govcitizenhub/index.cjs +35 -35
  103. package/dist/modules/govcitizenhub/index.d.cts +1 -1
  104. package/dist/modules/govcitizenhub/index.d.ts +1 -1
  105. package/dist/modules/govcitizenhub/index.js +2 -2
  106. package/dist/modules/groups/index.cjs +12 -12
  107. package/dist/modules/groups/index.d.cts +1 -1
  108. package/dist/modules/groups/index.d.ts +1 -1
  109. package/dist/modules/groups/index.js +2 -2
  110. package/dist/modules/headshotmarketing/index.cjs +165 -165
  111. package/dist/modules/headshotmarketing/index.d.cts +1 -1
  112. package/dist/modules/headshotmarketing/index.d.ts +1 -1
  113. package/dist/modules/headshotmarketing/index.js +2 -2
  114. package/dist/modules/health/index.d.cts +1 -1
  115. package/dist/modules/health/index.d.ts +1 -1
  116. package/dist/modules/hookmovies/index.cjs +43 -43
  117. package/dist/modules/hookmovies/index.d.cts +1 -1
  118. package/dist/modules/hookmovies/index.d.ts +1 -1
  119. package/dist/modules/hookmovies/index.js +2 -2
  120. package/dist/modules/housingvista/index.cjs +24 -24
  121. package/dist/modules/housingvista/index.d.cts +1 -1
  122. package/dist/modules/housingvista/index.d.ts +1 -1
  123. package/dist/modules/housingvista/index.js +2 -2
  124. package/dist/modules/integrations/index.cjs +27 -27
  125. package/dist/modules/integrations/index.d.cts +1 -1
  126. package/dist/modules/integrations/index.d.ts +1 -1
  127. package/dist/modules/integrations/index.js +2 -2
  128. package/dist/modules/intelwatchtower/index.cjs +37 -37
  129. package/dist/modules/intelwatchtower/index.d.cts +1 -1
  130. package/dist/modules/intelwatchtower/index.d.ts +1 -1
  131. package/dist/modules/intelwatchtower/index.js +2 -2
  132. package/dist/modules/kadaikodi/index.cjs +26 -26
  133. package/dist/modules/kadaikodi/index.d.cts +1 -1
  134. package/dist/modules/kadaikodi/index.d.ts +1 -1
  135. package/dist/modules/kadaikodi/index.js +2 -2
  136. package/dist/modules/labsofscience/index.cjs +44 -44
  137. package/dist/modules/labsofscience/index.d.cts +1 -1
  138. package/dist/modules/labsofscience/index.d.ts +1 -1
  139. package/dist/modules/labsofscience/index.js +2 -2
  140. package/dist/modules/manufacturedops/index.cjs +36 -36
  141. package/dist/modules/manufacturedops/index.d.cts +1 -1
  142. package/dist/modules/manufacturedops/index.d.ts +1 -1
  143. package/dist/modules/manufacturedops/index.js +2 -2
  144. package/dist/modules/movethewheels/index.cjs +78 -78
  145. package/dist/modules/movethewheels/index.d.cts +1 -1
  146. package/dist/modules/movethewheels/index.d.ts +1 -1
  147. package/dist/modules/movethewheels/index.js +2 -2
  148. package/dist/modules/mybodyshield/index.cjs +36 -36
  149. package/dist/modules/mybodyshield/index.d.cts +1 -1
  150. package/dist/modules/mybodyshield/index.d.ts +1 -1
  151. package/dist/modules/mybodyshield/index.js +2 -2
  152. package/dist/modules/notifications/index.cjs +5 -5
  153. package/dist/modules/notifications/index.d.cts +1 -1
  154. package/dist/modules/notifications/index.d.ts +1 -1
  155. package/dist/modules/notifications/index.js +1 -1
  156. package/dist/modules/organizations/index.cjs +5 -5
  157. package/dist/modules/organizations/index.d.cts +1 -1
  158. package/dist/modules/organizations/index.d.ts +1 -1
  159. package/dist/modules/organizations/index.js +1 -1
  160. package/dist/modules/planmagnet/index.cjs +272 -272
  161. package/dist/modules/planmagnet/index.d.cts +1 -1
  162. package/dist/modules/planmagnet/index.d.ts +1 -1
  163. package/dist/modules/planmagnet/index.js +2 -2
  164. package/dist/modules/products/index.cjs +19 -19
  165. package/dist/modules/products/index.d.cts +1 -1
  166. package/dist/modules/products/index.d.ts +1 -1
  167. package/dist/modules/products/index.js +2 -2
  168. package/dist/modules/proserviceworld/index.cjs +24 -24
  169. package/dist/modules/proserviceworld/index.d.cts +1 -1
  170. package/dist/modules/proserviceworld/index.d.ts +1 -1
  171. package/dist/modules/proserviceworld/index.js +2 -2
  172. package/dist/modules/rbac/index.cjs +8 -8
  173. package/dist/modules/rbac/index.d.cts +1 -1
  174. package/dist/modules/rbac/index.d.ts +1 -1
  175. package/dist/modules/rbac/index.js +2 -2
  176. package/dist/modules/sandbox/index.cjs +39 -39
  177. package/dist/modules/sandbox/index.d.cts +1 -1
  178. package/dist/modules/sandbox/index.d.ts +1 -1
  179. package/dist/modules/sandbox/index.js +1 -1
  180. package/dist/modules/scheduler/index.cjs +25 -25
  181. package/dist/modules/scheduler/index.d.cts +1 -1
  182. package/dist/modules/scheduler/index.d.ts +1 -1
  183. package/dist/modules/scheduler/index.js +2 -2
  184. package/dist/modules/security/index.cjs +14 -14
  185. package/dist/modules/security/index.d.cts +1 -1
  186. package/dist/modules/security/index.d.ts +1 -1
  187. package/dist/modules/security/index.js +2 -2
  188. package/dist/modules/semanticfed/index.cjs +44 -44
  189. package/dist/modules/semanticfed/index.d.cts +1 -1
  190. package/dist/modules/semanticfed/index.d.ts +1 -1
  191. package/dist/modules/semanticfed/index.js +1 -1
  192. package/dist/modules/semanticfed-sql/index.cjs +4 -4
  193. package/dist/modules/semanticfed-sql/index.d.cts +1 -1
  194. package/dist/modules/semanticfed-sql/index.d.ts +1 -1
  195. package/dist/modules/semanticfed-sql/index.js +1 -1
  196. package/dist/modules/store/index.cjs +21 -21
  197. package/dist/modules/store/index.d.cts +1 -1
  198. package/dist/modules/store/index.d.ts +1 -1
  199. package/dist/modules/store/index.js +2 -2
  200. package/dist/modules/subscriberbot/index.cjs +41 -41
  201. package/dist/modules/subscriberbot/index.d.cts +1 -1
  202. package/dist/modules/subscriberbot/index.d.ts +1 -1
  203. package/dist/modules/subscriberbot/index.js +2 -2
  204. package/dist/modules/support/index.cjs +8 -8
  205. package/dist/modules/support/index.d.cts +1 -1
  206. package/dist/modules/support/index.d.ts +1 -1
  207. package/dist/modules/support/index.js +2 -2
  208. package/dist/modules/tags/index.cjs +10 -10
  209. package/dist/modules/tags/index.d.cts +1 -1
  210. package/dist/modules/tags/index.d.ts +1 -1
  211. package/dist/modules/tags/index.js +2 -2
  212. package/dist/modules/technospam/index.cjs +44 -44
  213. package/dist/modules/technospam/index.d.cts +1 -1
  214. package/dist/modules/technospam/index.d.ts +1 -1
  215. package/dist/modules/technospam/index.js +2 -2
  216. package/dist/modules/theculturepost/index.cjs +32 -32
  217. package/dist/modules/theculturepost/index.d.cts +1 -1
  218. package/dist/modules/theculturepost/index.d.ts +1 -1
  219. package/dist/modules/theculturepost/index.js +2 -2
  220. package/dist/modules/theglobalfuel/index.cjs +30 -30
  221. package/dist/modules/theglobalfuel/index.d.cts +1 -1
  222. package/dist/modules/theglobalfuel/index.d.ts +1 -1
  223. package/dist/modules/theglobalfuel/index.js +2 -2
  224. package/dist/modules/timecampus/index.cjs +69 -69
  225. package/dist/modules/timecampus/index.d.cts +1 -1
  226. package/dist/modules/timecampus/index.d.ts +1 -1
  227. package/dist/modules/timecampus/index.js +4 -4
  228. package/dist/modules/tours/index.cjs +4 -4
  229. package/dist/modules/tours/index.d.cts +1 -1
  230. package/dist/modules/tours/index.d.ts +1 -1
  231. package/dist/modules/tours/index.js +2 -2
  232. package/dist/modules/vibecontrols/index.cjs +460 -460
  233. package/dist/modules/vibecontrols/index.d.cts +1 -1
  234. package/dist/modules/vibecontrols/index.d.ts +1 -1
  235. package/dist/modules/vibecontrols/index.js +5 -5
  236. package/dist/modules/workspaces/index.cjs +16 -16
  237. package/dist/modules/workspaces/index.d.cts +1 -1
  238. package/dist/modules/workspaces/index.d.ts +1 -1
  239. package/dist/modules/workspaces/index.js +2 -2
  240. package/package.json +6 -1
  241. package/dist/chunk-3ZVMC2AF.js +0 -1
  242. package/dist/chunk-ZT6KOG7N.js +0 -34
@@ -1,24 +1,24 @@
1
- 'use strict';require('graphql-request'),require('cross-fetch');var commander=require('commander');var p=class extends Error{exitCode;hint;constructor(r,e){super(r),this.name="CliUserError",this.exitCode=e?.exitCode??1,this.hint=e?.hint;}},l=class extends p{constructor(r,e){super(r,{exitCode:2,hint:e?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},f=class extends Error{cause;constructor(r,e){super(r),this.name="CliInternalError",this.cause=e;}};var C=null;function x(o){C=o;}function y(){if(!C)throw new f("vibecontrols module helpers used before setHelpersContext was called");return C}function de(){let o=y();if(!o.auth.isAuthenticated())throw new l("Authentication required.",{hint:`Run \`${o.productName} auth login\` to authenticate.`})}async function i(o,r){return de(),y().gql.workspace.request(o,r)}function s(o){let r=o instanceof Error?o.message:String(o);throw new p(r)}function a(o,r,e){y().output.formatAndOutput(o,r,e);}function m(o){y().output.printSuccess(o);}function h(o){return y().output.formatDate(o)}function d(o,r){return y().output.truncate(o,r)}var I=`
1
+ 'use strict';require('graphql-request'),require('cross-fetch');var commander=require('commander');var c=class extends Error{exitCode;hint;constructor(o,e){super(o),this.name="CliUserError",this.exitCode=e?.exitCode??1,this.hint=e?.hint;}},l=class extends c{constructor(o,e){super(o,{exitCode:2,hint:e?.hint??"Run `<product> auth login` to authenticate."}),this.name="CliAuthError";}},g=class extends Error{cause;constructor(o,e){super(o),this.name="CliInternalError",this.cause=e;}};function x(r){if(r instanceof l||r instanceof c)return r;let o=v(r)&&v(r.response)?r.response:void 0,e=o?.errors,n=Array.isArray(e)?e[0]:void 0,m=(v(n)&&v(n.extensions)?n.extensions:void 0)?.code,w=o?.status;return m==="UNAUTHENTICATED"||w===401?new l("Authentication required."):m==="FORBIDDEN"||w===403?new c("Permission denied."):m==="BAD_USER_INPUT"||m==="GRAPHQL_VALIDATION_FAILED"||w===400?new c("Invalid request. Check the command arguments."):m==="NOT_FOUND"||w===404?new c("Requested resource was not found."):m==="RATE_LIMITED"||m==="TOO_MANY_REQUESTS"||w===429?new c("Request limit reached. Try again later."):new g("The request could not be completed. Try again later.")}var k=class extends Error{response;constructor(o,e){super(o),this.name="GqlRequestError",this.response=e;}};function v(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}var I=null;function A(r){I=r;}function h(){if(!I)throw new g("vibecontrols module helpers used before setHelpersContext was called");return I}function fe(){let r=h();if(!r.auth.isAuthenticated())throw new l("Authentication required.",{hint:`Run \`${r.productName} auth login\` to authenticate.`})}async function i(r,o){return fe(),h().gql.workspace.request(r,o)}function s(r){throw r instanceof l||r instanceof c||r instanceof g?r:r instanceof k||r!==null&&typeof r=="object"&&"response"in r?x(r):new g("The command could not be completed. Try again later.")}function a(r,o,e){h().output.formatAndOutput(r,o,e);}function f(r){h().output.printSuccess(r);}function C(r){return h().output.formatDate(r)}function d(r,o){return h().output.truncate(r,o)}var O=`
2
2
  query GgnomadGetProvider($id: ID!) {
3
3
  ggnomadProvider(id: $id) {
4
4
  id name type description status website contactEmail contactPhone
5
5
  listingCount rating reviewCount totalRevenue createdAt updatedAt workspaceId
6
6
  }
7
7
  }
8
- `,b=`
8
+ `,P=`
9
9
  query GgnomadListProviders($pagination: PaginationInput) {
10
10
  ggnomadProviders(pagination: $pagination) {
11
11
  id name type status rating reviewCount listingCount totalRevenue createdAt
12
12
  }
13
13
  }
14
- `,E=`
14
+ `,R=`
15
15
  mutation GgnomadCreateProvider($input: CreateGgnomadProviderInput!) {
16
16
  createGgnomadProvider(input: $input) {
17
17
  id name type description status website contactEmail contactPhone
18
18
  listingCount rating reviewCount totalRevenue createdAt workspaceId
19
19
  }
20
20
  }
21
- `,O=`
21
+ `,S=`
22
22
  query GgnomadGetProperty($id: ID!) {
23
23
  ggnomadProperty(id: $id) {
24
24
  id name type description status address amenities bathrooms bedrooms
@@ -26,14 +26,14 @@
26
26
  providerId rating reviewCount createdAt updatedAt workspaceId
27
27
  }
28
28
  }
29
- `,A=`
29
+ `,G=`
30
30
  query GgnomadListProperties($pagination: PaginationInput) {
31
31
  ggnomadProperties(pagination: $pagination) {
32
32
  id name type status currency pricePerNight maxGuests bedrooms bathrooms
33
33
  rating reviewCount providerId createdAt
34
34
  }
35
35
  }
36
- `,P=`
36
+ `,q=`
37
37
  mutation GgnomadCreateProperty($input: CreateGgnomadPropertyInput!) {
38
38
  createGgnomadProperty(input: $input) {
39
39
  id name type description status address amenities bathrooms bedrooms
@@ -41,7 +41,7 @@
41
41
  providerId rating reviewCount createdAt workspaceId
42
42
  }
43
43
  }
44
- `,R=`
44
+ `,$=`
45
45
  query GgnomadGetActivity($id: ID!) {
46
46
  ggnomadActivity(id: $id) {
47
47
  id name category description difficulty duration currency price
@@ -49,14 +49,14 @@
49
49
  providerId rating reviewCount status createdAt updatedAt workspaceId
50
50
  }
51
51
  }
52
- `,S=`
52
+ `,D=`
53
53
  query GgnomadListActivities($pagination: PaginationInput) {
54
54
  ggnomadActivities(pagination: $pagination) {
55
55
  id name category difficulty duration currency price maxParticipants
56
56
  rating reviewCount status providerId createdAt
57
57
  }
58
58
  }
59
- `,G=`
59
+ `,N=`
60
60
  query GgnomadGetEvent($id: ID!) {
61
61
  ggnomadEvent(id: $id) {
62
62
  id name category description currency price images performers venue
@@ -64,14 +64,14 @@
64
64
  updatedAt workspaceId
65
65
  }
66
66
  }
67
- `,$=`
67
+ `,L=`
68
68
  query GgnomadListEvents($pagination: PaginationInput) {
69
69
  ggnomadEvents(pagination: $pagination) {
70
70
  id name category currency price startsAt endsAt rating reviewCount
71
71
  status providerId createdAt
72
72
  }
73
73
  }
74
- `,q=`
74
+ `,_=`
75
75
  query GgnomadGetTour($id: ID!) {
76
76
  ggnomadTour(id: $id) {
77
77
  id name type description difficulty duration currency price images
@@ -79,14 +79,14 @@
79
79
  rating reviewCount status createdAt updatedAt workspaceId
80
80
  }
81
81
  }
82
- `,D=`
82
+ `,F=`
83
83
  query GgnomadListTours($pagination: PaginationInput) {
84
84
  ggnomadTours(pagination: $pagination) {
85
85
  id name type difficulty duration currency price maxGroupSize rating
86
86
  reviewCount status providerId createdAt
87
87
  }
88
88
  }
89
- `,N=`
89
+ `,W=`
90
90
  query GgnomadListTrips($pagination: PaginationInput) {
91
91
  ggnomadTrips(pagination: $pagination) {
92
92
  id name transportMode class carrier currency price passengers
@@ -94,7 +94,7 @@
94
94
  returnDepartureAt returnArrivalAt status createdAt updatedAt workspaceId
95
95
  }
96
96
  }
97
- `,L=`
97
+ `,B=`
98
98
  query GgnomadListBookings($pagination: PaginationInput) {
99
99
  ggnomadBookings(pagination: $pagination) {
100
100
  id referenceCode bookingType itemId itemName guestName guests
@@ -102,7 +102,7 @@
102
102
  createdAt
103
103
  }
104
104
  }
105
- `,_=`
105
+ `,V=`
106
106
  mutation GgnomadCreateBooking($input: CreateGgnomadBookingInput!) {
107
107
  createGgnomadBooking(input: $input) {
108
108
  id referenceCode bookingType itemId itemName guestName guestEmail
@@ -110,31 +110,31 @@
110
110
  checkIn checkOut eventDate specialRequests createdAt workspaceId
111
111
  }
112
112
  }
113
- `,F=`
113
+ `,U=`
114
114
  mutation GgnomadCancelBooking($id: ID!, $reason: String) {
115
115
  cancelGgnomadBooking(id: $id, reason: $reason) {
116
116
  id referenceCode bookingType status paymentStatus totalPrice updatedAt
117
117
  }
118
118
  }
119
- `,W=`
119
+ `,M=`
120
120
  query GgnomadListFavorites($pagination: PaginationInput) {
121
121
  ggnomadFavorites(pagination: $pagination)
122
122
  }
123
- `,V=`
123
+ `,j=`
124
124
  mutation GgnomadToggleFavorite($input: ToggleGgnomadFavoriteInput!) {
125
125
  toggleGgnomadFavorite(input: $input)
126
126
  }
127
- `,B=`
127
+ `,z=`
128
128
  query GgnomadAnalytics {
129
129
  ggnomadAnalytics {
130
130
  totalUsers totalBookings totalRevenue conversionRate
131
131
  revenueByCategory topDestinations monthlyTrends
132
132
  }
133
133
  }
134
- `,M=`
134
+ `,Y=`
135
135
  query GgnomadOverviewStats {
136
136
  ggnomadOverviewStats {
137
137
  users listings bookings monthlyRevenue
138
138
  }
139
139
  }
140
- `;function U(o,r){try{return JSON.parse(r)}catch{throw new p(`--${o} must be valid JSON`)}}function c(o){let r=Number.parseInt(o,10);if(Number.isNaN(r))throw new p(`Expected an integer but got "${o}"`);return r}function w(o){let r=Number.parseFloat(o);if(Number.isNaN(r))throw new p(`Expected a number but got "${o}"`);return r}function j(o){let r=o.command("providers").description("GGNomad providers");r.command("list").description("List providers").option("--limit <n>","Page size",c,20).option("--offset <n>","Offset",c,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await i(b,{pagination:{limit:e.limit,offset:e.offset}});a(e,n.ggnomadProviders,{headers:["ID","Name","Type","Status","Rating","Listings"],rows:n.ggnomadProviders.map(t=>[d(t.id,12),t.name,t.type,t.status,`${t.rating??0} (${t.reviewCount??0})`,String(t.listingCount??0)])});}catch(n){s(n);}}),r.command("get").description("Get a provider by id").argument("<id>","Provider ID").option("-f, --format <format>","Output format").action(async(e,n)=>{try{let t=await i(I,{id:e});if(!t.ggnomadProvider)throw new p(`Provider ${e} not found`);a(n,t.ggnomadProvider);}catch(t){s(t);}}),r.command("create").description("Create a provider").requiredOption("--name <name>","Provider name").addOption(new commander.Option("--type <t>","Provider type").choices(["HOTEL_OPERATOR","TOUR_OPERATOR","ACTIVITY_PROVIDER","TRANSPORT_PROVIDER","EVENT_ORGANIZER"]).makeOptionMandatory()).option("--description <s>","Description").option("--website <url>","Website URL").option("--contact-email <email>","Contact email").option("--contact-phone <phone>","Contact phone").option("-f, --format <format>","Output format").action(async e=>{try{let n={name:e.name,type:e.type};e.description&&(n.description=e.description),e.website&&(n.website=e.website),e.contactEmail&&(n.contactEmail=e.contactEmail),e.contactPhone&&(n.contactPhone=e.contactPhone);let t=await i(E,{input:n});m(`Provider created: ${t.createGgnomadProvider.name}`),a(e,t.createGgnomadProvider);}catch(n){s(n);}});}function z(o){let r=o.command("properties").description("GGNomad stay properties");r.command("list").description("List properties").option("--limit <n>","Page size",c,20).option("--offset <n>","Offset",c,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await i(A,{pagination:{limit:e.limit,offset:e.offset}});a(e,n.ggnomadProperties,{headers:["ID","Name","Type","Status","Price/Night","Guests","Rating"],rows:n.ggnomadProperties.map(t=>[d(t.id,12),t.name,t.type,t.status,`${t.pricePerNight??0} ${t.currency??""}`.trim(),String(t.maxGuests??0),`${t.rating??0} (${t.reviewCount??0})`])});}catch(n){s(n);}}),r.command("get").description("Get a property by id").argument("<id>","Property ID").option("-f, --format <format>","Output format").action(async(e,n)=>{try{let t=await i(O,{id:e});if(!t.ggnomadProperty)throw new p(`Property ${e} not found`);a(n,t.ggnomadProperty);}catch(t){s(t);}}),r.command("create").description("Create a property").requiredOption("--name <name>","Property name").requiredOption("--type <t>","Property type").requiredOption("--address <json>","Address JSON").requiredOption("--max-guests <n>","Maximum guests",c).requiredOption("--price-per-night <n>","Price per night",w).requiredOption("--amenities <csv>","Comma-separated amenities").requiredOption("--images <csv>","Comma-separated image URLs").option("--provider <id>","Provider ID").option("--description <s>","Description").option("--bedrooms <n>","Bedrooms",c).option("--bathrooms <n>","Bathrooms",c).option("--check-in-time <s>","Check-in time").option("--check-out-time <s>","Check-out time").option("--currency <c>","Currency code").option("-f, --format <format>","Output format").action(async e=>{try{let n={name:e.name,type:e.type,address:U("address",e.address),maxGuests:e.maxGuests,pricePerNight:e.pricePerNight,amenities:e.amenities.split(",").map(k=>k.trim()),images:e.images.split(",").map(k=>k.trim())};e.provider&&(n.providerId=e.provider),e.description&&(n.description=e.description),e.bedrooms!==void 0&&(n.bedrooms=e.bedrooms),e.bathrooms!==void 0&&(n.bathrooms=e.bathrooms),e.checkInTime&&(n.checkInTime=e.checkInTime),e.checkOutTime&&(n.checkOutTime=e.checkOutTime),e.currency&&(n.currency=e.currency);let t=await i(P,{input:n});m(`Property created: ${t.createGgnomadProperty.name}`),a(e,t.createGgnomadProperty);}catch(n){s(n);}});}function Y(o){let r=o.command("activities").description("GGNomad activities");r.command("list").description("List activities").option("--limit <n>","Page size",c,20).option("--offset <n>","Offset",c,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await i(S,{pagination:{limit:e.limit,offset:e.offset}});a(e,n.ggnomadActivities,{headers:["ID","Name","Category","Difficulty","Duration","Price","Status"],rows:n.ggnomadActivities.map(t=>[d(t.id,12),t.name,t.category,t.difficulty??"-",t.duration??"-",`${t.price??0} ${t.currency??""}`.trim(),t.status])});}catch(n){s(n);}}),r.command("get").description("Get an activity by id").argument("<id>","Activity ID").option("-f, --format <format>","Output format").action(async(e,n)=>{try{let t=await i(R,{id:e});if(!t.ggnomadActivity)throw new p(`Activity ${e} not found`);a(n,t.ggnomadActivity);}catch(t){s(t);}});}function H(o){let r=o.command("events").description("GGNomad events");r.command("list").description("List events").option("--limit <n>","Page size",c,20).option("--offset <n>","Offset",c,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await i($,{pagination:{limit:e.limit,offset:e.offset}});a(e,n.ggnomadEvents,{headers:["ID","Name","Category","Price","Starts","Status"],rows:n.ggnomadEvents.map(t=>[d(t.id,12),t.name,t.category,`${t.price??0} ${t.currency??""}`.trim(),h(t.startsAt),t.status])});}catch(n){s(n);}}),r.command("get").description("Get an event by id").argument("<id>","Event ID").option("-f, --format <format>","Output format").action(async(e,n)=>{try{let t=await i(G,{id:e});if(!t.ggnomadEvent)throw new p(`Event ${e} not found`);a(n,t.ggnomadEvent);}catch(t){s(t);}});}function K(o){let r=o.command("tours").description("GGNomad tours");r.command("list").description("List tours").option("--limit <n>","Page size",c,20).option("--offset <n>","Offset",c,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await i(D,{pagination:{limit:e.limit,offset:e.offset}});a(e,n.ggnomadTours,{headers:["ID","Name","Type","Difficulty","Duration","Price","Status"],rows:n.ggnomadTours.map(t=>[d(t.id,12),t.name,t.type,t.difficulty??"-",t.duration??"-",`${t.price??0} ${t.currency??""}`.trim(),t.status])});}catch(n){s(n);}}),r.command("get").description("Get a tour by id").argument("<id>","Tour ID").option("-f, --format <format>","Output format").action(async(e,n)=>{try{let t=await i(q,{id:e});if(!t.ggnomadTour)throw new p(`Tour ${e} not found`);a(n,t.ggnomadTour);}catch(t){s(t);}});}function J(o){o.command("trips").description("GGNomad transport trips").command("list").description("List trips").option("--limit <n>","Page size",c,20).option("--offset <n>","Offset",c,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await i(N,{pagination:{limit:e.limit,offset:e.offset}});a(e,n.ggnomadTrips,{headers:["ID","Name","Mode","Price","Departs","Eco","Status"],rows:n.ggnomadTrips.map(t=>[d(t.id,12),t.name,t.transportMode,`${t.price??0} ${t.currency??""}`.trim(),h(t.departureAt),t.ecoFriendly?"yes":"no",t.status])});}catch(n){s(n);}});}function Q(o){let r=o.command("bookings").description("GGNomad bookings");r.command("list").description("List bookings").option("--limit <n>","Page size",c,20).option("--offset <n>","Offset",c,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await i(L,{pagination:{limit:e.limit,offset:e.offset}});a(e,n.ggnomadBookings,{headers:["ID","Ref","Type","Item","Guest","Total","Status","Payment"],rows:n.ggnomadBookings.map(t=>[d(t.id,12),t.referenceCode,t.bookingType,d(t.itemName,20),d(t.guestName,16),`${t.totalPrice} ${t.currency??""}`.trim(),t.status,t.paymentStatus])});}catch(n){s(n);}}),r.command("create").description("Create a booking").requiredOption("--type <t>","Booking type: ACTIVITY|EVENT|PROPERTY|TOUR|TRIP").requiredOption("--item-id <id>","Item ID being booked").requiredOption("--item-name <name>","Item name").requiredOption("--guest-name <name>","Guest name").requiredOption("--guests <n>","Number of guests",c).requiredOption("--total-price <n>","Total price",w).option("--guest-email <email>","Guest email").option("--guest-phone <phone>","Guest phone").option("--currency <c>","Currency code").option("--check-in <iso>","Check-in (ISO date)").option("--check-out <iso>","Check-out (ISO date)").option("--event-date <iso>","Event date (ISO date)").option("--payment-method <m>","Payment method").option("--special-requests <s>","Special requests").option("-f, --format <format>","Output format").action(async e=>{try{let n={bookingType:e.type.toUpperCase(),itemId:e.itemId,itemName:e.itemName,guestName:e.guestName,guests:e.guests,totalPrice:e.totalPrice};e.guestEmail&&(n.guestEmail=e.guestEmail),e.guestPhone&&(n.guestPhone=e.guestPhone),e.currency&&(n.currency=e.currency),e.checkIn&&(n.checkIn=e.checkIn),e.checkOut&&(n.checkOut=e.checkOut),e.eventDate&&(n.eventDate=e.eventDate),e.paymentMethod&&(n.paymentMethod=e.paymentMethod),e.specialRequests&&(n.specialRequests=e.specialRequests);let t=await i(_,{input:n});m(`Booking created: ${t.createGgnomadBooking.referenceCode}`),a(e,t.createGgnomadBooking);}catch(n){s(n);}}),r.command("cancel").description("Cancel a booking").argument("<id>","Booking ID").option("--reason <s>","Cancellation reason").option("-f, --format <format>","Output format").action(async(e,n)=>{try{let t=await i(F,{id:e,reason:n.reason});m(`Booking cancelled: ${t.cancelGgnomadBooking.referenceCode}`),a(n,t.cancelGgnomadBooking);}catch(t){s(t);}});}function X(o){let r=o.command("favorites").description("GGNomad favorites");r.command("list").description("List favorites").option("--limit <n>","Page size",c,50).option("--offset <n>","Offset",c,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await i(W,{pagination:{limit:e.limit,offset:e.offset}});a(e,n.ggnomadFavorites);}catch(n){s(n);}}),r.command("toggle").description("Toggle a favorite on a target").requiredOption("--target-id <id>","Target ID").requiredOption("--target-type <t>","Target type: ACTIVITY|EVENT|PROPERTY|TOUR|TRIP").option("-f, --format <format>","Output format").action(async e=>{try{let n={targetId:e.targetId,targetType:e.targetType.toUpperCase()},t=await i(V,{input:n});m(t.toggleGgnomadFavorite?"Added to favorites":"Removed from favorites"),a(e,{favorited:t.toggleGgnomadFavorite});}catch(n){s(n);}});}function Z(o){let r=o.command("analytics").description("GGNomad analytics & overview");r.command("summary").description("Platform analytics (users, bookings, revenue, conversion, trends)").option("-f, --format <format>","Output format").action(async e=>{try{let n=await i(B);a(e,n.ggnomadAnalytics);}catch(n){s(n);}}),r.command("overview").description("Overview stats (users, listings, bookings, monthly revenue)").option("-f, --format <format>","Output format").action(async e=>{try{let n=await i(M);a(e,n.ggnomadOverviewStats);}catch(n){s(n);}});}var ge={id:"ggnomad",version:"1.0.0",displayName:"GGNomad",dependsOn:["auth","workspaces"],register(o,r){x(r);let e=o.command("ggnomad").description("GGNomad travel & experiences marketplace");j(e),z(e),Y(e),H(e),K(e),J(e),Q(e),X(e),Z(e);}},pn=ge;module.exports=pn;
140
+ `;function H(r,o){try{return JSON.parse(o)}catch{throw new c(`--${r} must be valid JSON`)}}function u(r){let o=Number.parseInt(r,10);if(Number.isNaN(o))throw new c(`Expected an integer but got "${r}"`);return o}function T(r){let o=Number.parseFloat(r);if(Number.isNaN(o))throw new c(`Expected a number but got "${r}"`);return o}function K(r){let o=r.command("providers").description("GGNomad providers");o.command("list").description("List providers").option("--limit <n>","Page size",u,20).option("--offset <n>","Offset",u,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await i(P,{pagination:{limit:e.limit,offset:e.offset}});a(e,n.ggnomadProviders,{headers:["ID","Name","Type","Status","Rating","Listings"],rows:n.ggnomadProviders.map(t=>[d(t.id,12),t.name,t.type,t.status,`${t.rating??0} (${t.reviewCount??0})`,String(t.listingCount??0)])});}catch(n){s(n);}}),o.command("get").description("Get a provider by id").argument("<id>","Provider ID").option("-f, --format <format>","Output format").action(async(e,n)=>{try{let t=await i(O,{id:e});if(!t.ggnomadProvider)throw new c(`Provider ${e} not found`);a(n,t.ggnomadProvider);}catch(t){s(t);}}),o.command("create").description("Create a provider").requiredOption("--name <name>","Provider name").addOption(new commander.Option("--type <t>","Provider type").choices(["HOTEL_OPERATOR","TOUR_OPERATOR","ACTIVITY_PROVIDER","TRANSPORT_PROVIDER","EVENT_ORGANIZER"]).makeOptionMandatory()).option("--description <s>","Description").option("--website <url>","Website URL").option("--contact-email <email>","Contact email").option("--contact-phone <phone>","Contact phone").option("-f, --format <format>","Output format").action(async e=>{try{let n={name:e.name,type:e.type};e.description&&(n.description=e.description),e.website&&(n.website=e.website),e.contactEmail&&(n.contactEmail=e.contactEmail),e.contactPhone&&(n.contactPhone=e.contactPhone);let t=await i(R,{input:n});f(`Provider created: ${t.createGgnomadProvider.name}`),a(e,t.createGgnomadProvider);}catch(n){s(n);}});}function J(r){let o=r.command("properties").description("GGNomad stay properties");o.command("list").description("List properties").option("--limit <n>","Page size",u,20).option("--offset <n>","Offset",u,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await i(G,{pagination:{limit:e.limit,offset:e.offset}});a(e,n.ggnomadProperties,{headers:["ID","Name","Type","Status","Price/Night","Guests","Rating"],rows:n.ggnomadProperties.map(t=>[d(t.id,12),t.name,t.type,t.status,`${t.pricePerNight??0} ${t.currency??""}`.trim(),String(t.maxGuests??0),`${t.rating??0} (${t.reviewCount??0})`])});}catch(n){s(n);}}),o.command("get").description("Get a property by id").argument("<id>","Property ID").option("-f, --format <format>","Output format").action(async(e,n)=>{try{let t=await i(S,{id:e});if(!t.ggnomadProperty)throw new c(`Property ${e} not found`);a(n,t.ggnomadProperty);}catch(t){s(t);}}),o.command("create").description("Create a property").requiredOption("--name <name>","Property name").requiredOption("--type <t>","Property type").requiredOption("--address <json>","Address JSON").requiredOption("--max-guests <n>","Maximum guests",u).requiredOption("--price-per-night <n>","Price per night",T).requiredOption("--amenities <csv>","Comma-separated amenities").requiredOption("--images <csv>","Comma-separated image URLs").option("--provider <id>","Provider ID").option("--description <s>","Description").option("--bedrooms <n>","Bedrooms",u).option("--bathrooms <n>","Bathrooms",u).option("--check-in-time <s>","Check-in time").option("--check-out-time <s>","Check-out time").option("--currency <c>","Currency code").option("-f, --format <format>","Output format").action(async e=>{try{let n={name:e.name,type:e.type,address:H("address",e.address),maxGuests:e.maxGuests,pricePerNight:e.pricePerNight,amenities:e.amenities.split(",").map(m=>m.trim()),images:e.images.split(",").map(m=>m.trim())};e.provider&&(n.providerId=e.provider),e.description&&(n.description=e.description),e.bedrooms!==void 0&&(n.bedrooms=e.bedrooms),e.bathrooms!==void 0&&(n.bathrooms=e.bathrooms),e.checkInTime&&(n.checkInTime=e.checkInTime),e.checkOutTime&&(n.checkOutTime=e.checkOutTime),e.currency&&(n.currency=e.currency);let t=await i(q,{input:n});f(`Property created: ${t.createGgnomadProperty.name}`),a(e,t.createGgnomadProperty);}catch(n){s(n);}});}function Q(r){let o=r.command("activities").description("GGNomad activities");o.command("list").description("List activities").option("--limit <n>","Page size",u,20).option("--offset <n>","Offset",u,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await i(D,{pagination:{limit:e.limit,offset:e.offset}});a(e,n.ggnomadActivities,{headers:["ID","Name","Category","Difficulty","Duration","Price","Status"],rows:n.ggnomadActivities.map(t=>[d(t.id,12),t.name,t.category,t.difficulty??"-",t.duration??"-",`${t.price??0} ${t.currency??""}`.trim(),t.status])});}catch(n){s(n);}}),o.command("get").description("Get an activity by id").argument("<id>","Activity ID").option("-f, --format <format>","Output format").action(async(e,n)=>{try{let t=await i($,{id:e});if(!t.ggnomadActivity)throw new c(`Activity ${e} not found`);a(n,t.ggnomadActivity);}catch(t){s(t);}});}function X(r){let o=r.command("events").description("GGNomad events");o.command("list").description("List events").option("--limit <n>","Page size",u,20).option("--offset <n>","Offset",u,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await i(L,{pagination:{limit:e.limit,offset:e.offset}});a(e,n.ggnomadEvents,{headers:["ID","Name","Category","Price","Starts","Status"],rows:n.ggnomadEvents.map(t=>[d(t.id,12),t.name,t.category,`${t.price??0} ${t.currency??""}`.trim(),C(t.startsAt),t.status])});}catch(n){s(n);}}),o.command("get").description("Get an event by id").argument("<id>","Event ID").option("-f, --format <format>","Output format").action(async(e,n)=>{try{let t=await i(N,{id:e});if(!t.ggnomadEvent)throw new c(`Event ${e} not found`);a(n,t.ggnomadEvent);}catch(t){s(t);}});}function Z(r){let o=r.command("tours").description("GGNomad tours");o.command("list").description("List tours").option("--limit <n>","Page size",u,20).option("--offset <n>","Offset",u,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await i(F,{pagination:{limit:e.limit,offset:e.offset}});a(e,n.ggnomadTours,{headers:["ID","Name","Type","Difficulty","Duration","Price","Status"],rows:n.ggnomadTours.map(t=>[d(t.id,12),t.name,t.type,t.difficulty??"-",t.duration??"-",`${t.price??0} ${t.currency??""}`.trim(),t.status])});}catch(n){s(n);}}),o.command("get").description("Get a tour by id").argument("<id>","Tour ID").option("-f, --format <format>","Output format").action(async(e,n)=>{try{let t=await i(_,{id:e});if(!t.ggnomadTour)throw new c(`Tour ${e} not found`);a(n,t.ggnomadTour);}catch(t){s(t);}});}function ee(r){r.command("trips").description("GGNomad transport trips").command("list").description("List trips").option("--limit <n>","Page size",u,20).option("--offset <n>","Offset",u,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await i(W,{pagination:{limit:e.limit,offset:e.offset}});a(e,n.ggnomadTrips,{headers:["ID","Name","Mode","Price","Departs","Eco","Status"],rows:n.ggnomadTrips.map(t=>[d(t.id,12),t.name,t.transportMode,`${t.price??0} ${t.currency??""}`.trim(),C(t.departureAt),t.ecoFriendly?"yes":"no",t.status])});}catch(n){s(n);}});}function te(r){let o=r.command("bookings").description("GGNomad bookings");o.command("list").description("List bookings").option("--limit <n>","Page size",u,20).option("--offset <n>","Offset",u,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await i(B,{pagination:{limit:e.limit,offset:e.offset}});a(e,n.ggnomadBookings,{headers:["ID","Ref","Type","Item","Guest","Total","Status","Payment"],rows:n.ggnomadBookings.map(t=>[d(t.id,12),t.referenceCode,t.bookingType,d(t.itemName,20),d(t.guestName,16),`${t.totalPrice} ${t.currency??""}`.trim(),t.status,t.paymentStatus])});}catch(n){s(n);}}),o.command("create").description("Create a booking").requiredOption("--type <t>","Booking type: ACTIVITY|EVENT|PROPERTY|TOUR|TRIP").requiredOption("--item-id <id>","Item ID being booked").requiredOption("--item-name <name>","Item name").requiredOption("--guest-name <name>","Guest name").requiredOption("--guests <n>","Number of guests",u).requiredOption("--total-price <n>","Total price",T).option("--guest-email <email>","Guest email").option("--guest-phone <phone>","Guest phone").option("--currency <c>","Currency code").option("--check-in <iso>","Check-in (ISO date)").option("--check-out <iso>","Check-out (ISO date)").option("--event-date <iso>","Event date (ISO date)").option("--payment-method <m>","Payment method").option("--special-requests <s>","Special requests").option("-f, --format <format>","Output format").action(async e=>{try{let n={bookingType:e.type.toUpperCase(),itemId:e.itemId,itemName:e.itemName,guestName:e.guestName,guests:e.guests,totalPrice:e.totalPrice};e.guestEmail&&(n.guestEmail=e.guestEmail),e.guestPhone&&(n.guestPhone=e.guestPhone),e.currency&&(n.currency=e.currency),e.checkIn&&(n.checkIn=e.checkIn),e.checkOut&&(n.checkOut=e.checkOut),e.eventDate&&(n.eventDate=e.eventDate),e.paymentMethod&&(n.paymentMethod=e.paymentMethod),e.specialRequests&&(n.specialRequests=e.specialRequests);let t=await i(V,{input:n});f(`Booking created: ${t.createGgnomadBooking.referenceCode}`),a(e,t.createGgnomadBooking);}catch(n){s(n);}}),o.command("cancel").description("Cancel a booking").argument("<id>","Booking ID").option("--reason <s>","Cancellation reason").option("-f, --format <format>","Output format").action(async(e,n)=>{try{let t=await i(U,{id:e,reason:n.reason});f(`Booking cancelled: ${t.cancelGgnomadBooking.referenceCode}`),a(n,t.cancelGgnomadBooking);}catch(t){s(t);}});}function ne(r){let o=r.command("favorites").description("GGNomad favorites");o.command("list").description("List favorites").option("--limit <n>","Page size",u,50).option("--offset <n>","Offset",u,0).option("-f, --format <format>","Output format").action(async e=>{try{let n=await i(M,{pagination:{limit:e.limit,offset:e.offset}});a(e,n.ggnomadFavorites);}catch(n){s(n);}}),o.command("toggle").description("Toggle a favorite on a target").requiredOption("--target-id <id>","Target ID").requiredOption("--target-type <t>","Target type: ACTIVITY|EVENT|PROPERTY|TOUR|TRIP").option("-f, --format <format>","Output format").action(async e=>{try{let n={targetId:e.targetId,targetType:e.targetType.toUpperCase()},t=await i(j,{input:n});f(t.toggleGgnomadFavorite?"Added to favorites":"Removed from favorites"),a(e,{favorited:t.toggleGgnomadFavorite});}catch(n){s(n);}});}function re(r){let o=r.command("analytics").description("GGNomad analytics & overview");o.command("summary").description("Platform analytics (users, bookings, revenue, conversion, trends)").option("-f, --format <format>","Output format").action(async e=>{try{let n=await i(z);a(e,n.ggnomadAnalytics);}catch(n){s(n);}}),o.command("overview").description("Overview stats (users, listings, bookings, monthly revenue)").option("-f, --format <format>","Output format").action(async e=>{try{let n=await i(Y);a(e,n.ggnomadOverviewStats);}catch(n){s(n);}});}var he={id:"ggnomad",version:"1.0.0",displayName:"GGNomad",dependsOn:["auth","workspaces"],register(r,o){A(o);let e=r.command("ggnomad").description("GGNomad travel & experiences marketplace");K(e),J(e),Q(e),X(e),Z(e),ee(e),te(e),ne(e),re(e);}},ln=he;module.exports=ln;
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-BNVKV_pI.cjs';
1
+ import { C as CliModule } from '../../module-DWSAfs3k.cjs';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import { C as CliModule } from '../../module-BNVKV_pI.js';
1
+ import { C as CliModule } from '../../module-DWSAfs3k.js';
2
2
  import 'commander';
3
3
  import 'graphql-request';
4
4
 
@@ -1,4 +1,4 @@
1
- import {a,b as b$1,i,r,h as h$1,k as k$1,q as q$2}from'../../chunk-3ZVMC2AF.js';import {q as q$1}from'../../chunk-ZT6KOG7N.js';import {Option}from'commander';var T=`
1
+ import {a,b as b$1,i,r,h as h$1,k as k$1,q as q$1}from'../../chunk-BGNPGKJM.js';import {j}from'../../chunk-N7EXKGE2.js';import {Option}from'commander';var T=`
2
2
  query GgnomadGetProvider($id: ID!) {
3
3
  ggnomadProvider(id: $id) {
4
4
  id name type description status website contactEmail contactPhone
@@ -137,4 +137,4 @@ import {a,b as b$1,i,r,h as h$1,k as k$1,q as q$2}from'../../chunk-3ZVMC2AF.js';
137
137
  users listings bookings monthlyRevenue
138
138
  }
139
139
  }
140
- `;function B(m,r){try{return JSON.parse(r)}catch{throw new q$1(`--${m} must be valid JSON`)}}function s(m){let r=Number.parseInt(m,10);if(Number.isNaN(r))throw new q$1(`Expected an integer but got "${m}"`);return r}function l(m){let r=Number.parseFloat(m);if(Number.isNaN(r))throw new q$1(`Expected a number but got "${m}"`);return r}function V(m){let r$1=m.command("providers").description("GGNomad providers");r$1.command("list").description("List providers").option("--limit <n>","Page size",s,20).option("--offset <n>","Offset",s,0).option("-f, --format <format>","Output format").action(async t=>{try{let o=await b$1(P,{pagination:{limit:t.limit,offset:t.offset}});i(t,o.ggnomadProviders,{headers:["ID","Name","Type","Status","Rating","Listings"],rows:o.ggnomadProviders.map(e=>[r(e.id,12),e.name,e.type,e.status,`${e.rating??0} (${e.reviewCount??0})`,String(e.listingCount??0)])});}catch(o){h$1(o);}}),r$1.command("get").description("Get a provider by id").argument("<id>","Provider ID").option("-f, --format <format>","Output format").action(async(t,o)=>{try{let e=await b$1(T,{id:t});if(!e.ggnomadProvider)throw new q$1(`Provider ${t} not found`);i(o,e.ggnomadProvider);}catch(e){h$1(e);}}),r$1.command("create").description("Create a provider").requiredOption("--name <name>","Provider name").addOption(new Option("--type <t>","Provider type").choices(["HOTEL_OPERATOR","TOUR_OPERATOR","ACTIVITY_PROVIDER","TRANSPORT_PROVIDER","EVENT_ORGANIZER"]).makeOptionMandatory()).option("--description <s>","Description").option("--website <url>","Website URL").option("--contact-email <email>","Contact email").option("--contact-phone <phone>","Contact phone").option("-f, --format <format>","Output format").action(async t=>{try{let o={name:t.name,type:t.type};t.description&&(o.description=t.description),t.website&&(o.website=t.website),t.contactEmail&&(o.contactEmail=t.contactEmail),t.contactPhone&&(o.contactPhone=t.contactPhone);let e=await b$1(C,{input:o});k$1(`Provider created: ${e.createGgnomadProvider.name}`),i(t,e.createGgnomadProvider);}catch(o){h$1(o);}});}function F(m){let r$1=m.command("properties").description("GGNomad stay properties");r$1.command("list").description("List properties").option("--limit <n>","Page size",s,20).option("--offset <n>","Offset",s,0).option("-f, --format <format>","Output format").action(async t=>{try{let o=await b$1(h,{pagination:{limit:t.limit,offset:t.offset}});i(t,o.ggnomadProperties,{headers:["ID","Name","Type","Status","Price/Night","Guests","Rating"],rows:o.ggnomadProperties.map(e=>[r(e.id,12),e.name,e.type,e.status,`${e.pricePerNight??0} ${e.currency??""}`.trim(),String(e.maxGuests??0),`${e.rating??0} (${e.reviewCount??0})`])});}catch(o){h$1(o);}}),r$1.command("get").description("Get a property by id").argument("<id>","Property ID").option("-f, --format <format>","Output format").action(async(t,o)=>{try{let e=await b$1(O,{id:t});if(!e.ggnomadProperty)throw new q$1(`Property ${t} not found`);i(o,e.ggnomadProperty);}catch(e){h$1(e);}}),r$1.command("create").description("Create a property").requiredOption("--name <name>","Property name").requiredOption("--type <t>","Property type").requiredOption("--address <json>","Address JSON").requiredOption("--max-guests <n>","Maximum guests",s).requiredOption("--price-per-night <n>","Price per night",l).requiredOption("--amenities <csv>","Comma-separated amenities").requiredOption("--images <csv>","Comma-separated image URLs").option("--provider <id>","Provider ID").option("--description <s>","Description").option("--bedrooms <n>","Bedrooms",s).option("--bathrooms <n>","Bathrooms",s).option("--check-in-time <s>","Check-in time").option("--check-out-time <s>","Check-out time").option("--currency <c>","Currency code").option("-f, --format <format>","Output format").action(async t=>{try{let o={name:t.name,type:t.type,address:B("address",t.address),maxGuests:t.maxGuests,pricePerNight:t.pricePerNight,amenities:t.amenities.split(",").map(v=>v.trim()),images:t.images.split(",").map(v=>v.trim())};t.provider&&(o.providerId=t.provider),t.description&&(o.description=t.description),t.bedrooms!==void 0&&(o.bedrooms=t.bedrooms),t.bathrooms!==void 0&&(o.bathrooms=t.bathrooms),t.checkInTime&&(o.checkInTime=t.checkInTime),t.checkOutTime&&(o.checkOutTime=t.checkOutTime),t.currency&&(o.currency=t.currency);let e=await b$1(w,{input:o});k$1(`Property created: ${e.createGgnomadProperty.name}`),i(t,e.createGgnomadProperty);}catch(o){h$1(o);}});}function U(m){let r$1=m.command("activities").description("GGNomad activities");r$1.command("list").description("List activities").option("--limit <n>","Page size",s,20).option("--offset <n>","Offset",s,0).option("-f, --format <format>","Output format").action(async t=>{try{let o=await b$1(k,{pagination:{limit:t.limit,offset:t.offset}});i(t,o.ggnomadActivities,{headers:["ID","Name","Category","Difficulty","Duration","Price","Status"],rows:o.ggnomadActivities.map(e=>[r(e.id,12),e.name,e.category,e.difficulty??"-",e.duration??"-",`${e.price??0} ${e.currency??""}`.trim(),e.status])});}catch(o){h$1(o);}}),r$1.command("get").description("Get an activity by id").argument("<id>","Activity ID").option("-f, --format <format>","Output format").action(async(t,o)=>{try{let e=await b$1(E,{id:t});if(!e.ggnomadActivity)throw new q$1(`Activity ${t} not found`);i(o,e.ggnomadActivity);}catch(e){h$1(e);}});}function M(m){let r$1=m.command("events").description("GGNomad events");r$1.command("list").description("List events").option("--limit <n>","Page size",s,20).option("--offset <n>","Offset",s,0).option("-f, --format <format>","Output format").action(async t=>{try{let o=await b$1(R,{pagination:{limit:t.limit,offset:t.offset}});i(t,o.ggnomadEvents,{headers:["ID","Name","Category","Price","Starts","Status"],rows:o.ggnomadEvents.map(e=>[r(e.id,12),e.name,e.category,`${e.price??0} ${e.currency??""}`.trim(),q$2(e.startsAt),e.status])});}catch(o){h$1(o);}}),r$1.command("get").description("Get an event by id").argument("<id>","Event ID").option("-f, --format <format>","Output format").action(async(t,o)=>{try{let e=await b$1(G,{id:t});if(!e.ggnomadEvent)throw new q$1(`Event ${t} not found`);i(o,e.ggnomadEvent);}catch(e){h$1(e);}});}function W(m){let r$1=m.command("tours").description("GGNomad tours");r$1.command("list").description("List tours").option("--limit <n>","Page size",s,20).option("--offset <n>","Offset",s,0).option("-f, --format <format>","Output format").action(async t=>{try{let o=await b$1(b,{pagination:{limit:t.limit,offset:t.offset}});i(t,o.ggnomadTours,{headers:["ID","Name","Type","Difficulty","Duration","Price","Status"],rows:o.ggnomadTours.map(e=>[r(e.id,12),e.name,e.type,e.difficulty??"-",e.duration??"-",`${e.price??0} ${e.currency??""}`.trim(),e.status])});}catch(o){h$1(o);}}),r$1.command("get").description("Get a tour by id").argument("<id>","Tour ID").option("-f, --format <format>","Output format").action(async(t,o)=>{try{let e=await b$1(A,{id:t});if(!e.ggnomadTour)throw new q$1(`Tour ${t} not found`);i(o,e.ggnomadTour);}catch(e){h$1(e);}});}function Y(m){m.command("trips").description("GGNomad transport trips").command("list").description("List trips").option("--limit <n>","Page size",s,20).option("--offset <n>","Offset",s,0).option("-f, --format <format>","Output format").action(async t=>{try{let o=await b$1(S,{pagination:{limit:t.limit,offset:t.offset}});i(t,o.ggnomadTrips,{headers:["ID","Name","Mode","Price","Departs","Eco","Status"],rows:o.ggnomadTrips.map(e=>[r(e.id,12),e.name,e.transportMode,`${e.price??0} ${e.currency??""}`.trim(),q$2(e.departureAt),e.ecoFriendly?"yes":"no",e.status])});}catch(o){h$1(o);}});}function z(m){let r$1=m.command("bookings").description("GGNomad bookings");r$1.command("list").description("List bookings").option("--limit <n>","Page size",s,20).option("--offset <n>","Offset",s,0).option("-f, --format <format>","Output format").action(async t=>{try{let o=await b$1(N,{pagination:{limit:t.limit,offset:t.offset}});i(t,o.ggnomadBookings,{headers:["ID","Ref","Type","Item","Guest","Total","Status","Payment"],rows:o.ggnomadBookings.map(e=>[r(e.id,12),e.referenceCode,e.bookingType,r(e.itemName,20),r(e.guestName,16),`${e.totalPrice} ${e.currency??""}`.trim(),e.status,e.paymentStatus])});}catch(o){h$1(o);}}),r$1.command("create").description("Create a booking").requiredOption("--type <t>","Booking type: ACTIVITY|EVENT|PROPERTY|TOUR|TRIP").requiredOption("--item-id <id>","Item ID being booked").requiredOption("--item-name <name>","Item name").requiredOption("--guest-name <name>","Guest name").requiredOption("--guests <n>","Number of guests",s).requiredOption("--total-price <n>","Total price",l).option("--guest-email <email>","Guest email").option("--guest-phone <phone>","Guest phone").option("--currency <c>","Currency code").option("--check-in <iso>","Check-in (ISO date)").option("--check-out <iso>","Check-out (ISO date)").option("--event-date <iso>","Event date (ISO date)").option("--payment-method <m>","Payment method").option("--special-requests <s>","Special requests").option("-f, --format <format>","Output format").action(async t=>{try{let o={bookingType:t.type.toUpperCase(),itemId:t.itemId,itemName:t.itemName,guestName:t.guestName,guests:t.guests,totalPrice:t.totalPrice};t.guestEmail&&(o.guestEmail=t.guestEmail),t.guestPhone&&(o.guestPhone=t.guestPhone),t.currency&&(o.currency=t.currency),t.checkIn&&(o.checkIn=t.checkIn),t.checkOut&&(o.checkOut=t.checkOut),t.eventDate&&(o.eventDate=t.eventDate),t.paymentMethod&&(o.paymentMethod=t.paymentMethod),t.specialRequests&&(o.specialRequests=t.specialRequests);let e=await b$1(x,{input:o});k$1(`Booking created: ${e.createGgnomadBooking.referenceCode}`),i(t,e.createGgnomadBooking);}catch(o){h$1(o);}}),r$1.command("cancel").description("Cancel a booking").argument("<id>","Booking ID").option("--reason <s>","Cancellation reason").option("-f, --format <format>","Output format").action(async(t,o)=>{try{let e=await b$1($,{id:t,reason:o.reason});k$1(`Booking cancelled: ${e.cancelGgnomadBooking.referenceCode}`),i(o,e.cancelGgnomadBooking);}catch(e){h$1(e);}});}function K(m){let r=m.command("favorites").description("GGNomad favorites");r.command("list").description("List favorites").option("--limit <n>","Page size",s,50).option("--offset <n>","Offset",s,0).option("-f, --format <format>","Output format").action(async t=>{try{let o=await b$1(D,{pagination:{limit:t.limit,offset:t.offset}});i(t,o.ggnomadFavorites);}catch(o){h$1(o);}}),r.command("toggle").description("Toggle a favorite on a target").requiredOption("--target-id <id>","Target ID").requiredOption("--target-type <t>","Target type: ACTIVITY|EVENT|PROPERTY|TOUR|TRIP").option("-f, --format <format>","Output format").action(async t=>{try{let o={targetId:t.targetId,targetType:t.targetType.toUpperCase()},e=await b$1(L,{input:o});k$1(e.toggleGgnomadFavorite?"Added to favorites":"Removed from favorites"),i(t,{favorited:e.toggleGgnomadFavorite});}catch(o){h$1(o);}});}function J(m){let r=m.command("analytics").description("GGNomad analytics & overview");r.command("summary").description("Platform analytics (users, bookings, revenue, conversion, trends)").option("-f, --format <format>","Output format").action(async t=>{try{let o=await b$1(_);i(t,o.ggnomadAnalytics);}catch(o){h$1(o);}}),r.command("overview").description("Overview stats (users, listings, bookings, monthly revenue)").option("-f, --format <format>","Output format").action(async t=>{try{let o=await b$1(q);i(t,o.ggnomadOverviewStats);}catch(o){h$1(o);}});}var H={id:"ggnomad",version:"1.0.0",displayName:"GGNomad",dependsOn:["auth","workspaces"],register(m,r){a(r);let t=m.command("ggnomad").description("GGNomad travel & experiences marketplace");V(t),F(t),U(t),M(t),W(t),Y(t),z(t),K(t),J(t);}},Ft=H;export{Ft as default};
140
+ `;function B(m,r){try{return JSON.parse(r)}catch{throw new j(`--${m} must be valid JSON`)}}function s(m){let r=Number.parseInt(m,10);if(Number.isNaN(r))throw new j(`Expected an integer but got "${m}"`);return r}function l(m){let r=Number.parseFloat(m);if(Number.isNaN(r))throw new j(`Expected a number but got "${m}"`);return r}function V(m){let r$1=m.command("providers").description("GGNomad providers");r$1.command("list").description("List providers").option("--limit <n>","Page size",s,20).option("--offset <n>","Offset",s,0).option("-f, --format <format>","Output format").action(async t=>{try{let o=await b$1(P,{pagination:{limit:t.limit,offset:t.offset}});i(t,o.ggnomadProviders,{headers:["ID","Name","Type","Status","Rating","Listings"],rows:o.ggnomadProviders.map(e=>[r(e.id,12),e.name,e.type,e.status,`${e.rating??0} (${e.reviewCount??0})`,String(e.listingCount??0)])});}catch(o){h$1(o);}}),r$1.command("get").description("Get a provider by id").argument("<id>","Provider ID").option("-f, --format <format>","Output format").action(async(t,o)=>{try{let e=await b$1(T,{id:t});if(!e.ggnomadProvider)throw new j(`Provider ${t} not found`);i(o,e.ggnomadProvider);}catch(e){h$1(e);}}),r$1.command("create").description("Create a provider").requiredOption("--name <name>","Provider name").addOption(new Option("--type <t>","Provider type").choices(["HOTEL_OPERATOR","TOUR_OPERATOR","ACTIVITY_PROVIDER","TRANSPORT_PROVIDER","EVENT_ORGANIZER"]).makeOptionMandatory()).option("--description <s>","Description").option("--website <url>","Website URL").option("--contact-email <email>","Contact email").option("--contact-phone <phone>","Contact phone").option("-f, --format <format>","Output format").action(async t=>{try{let o={name:t.name,type:t.type};t.description&&(o.description=t.description),t.website&&(o.website=t.website),t.contactEmail&&(o.contactEmail=t.contactEmail),t.contactPhone&&(o.contactPhone=t.contactPhone);let e=await b$1(C,{input:o});k$1(`Provider created: ${e.createGgnomadProvider.name}`),i(t,e.createGgnomadProvider);}catch(o){h$1(o);}});}function F(m){let r$1=m.command("properties").description("GGNomad stay properties");r$1.command("list").description("List properties").option("--limit <n>","Page size",s,20).option("--offset <n>","Offset",s,0).option("-f, --format <format>","Output format").action(async t=>{try{let o=await b$1(h,{pagination:{limit:t.limit,offset:t.offset}});i(t,o.ggnomadProperties,{headers:["ID","Name","Type","Status","Price/Night","Guests","Rating"],rows:o.ggnomadProperties.map(e=>[r(e.id,12),e.name,e.type,e.status,`${e.pricePerNight??0} ${e.currency??""}`.trim(),String(e.maxGuests??0),`${e.rating??0} (${e.reviewCount??0})`])});}catch(o){h$1(o);}}),r$1.command("get").description("Get a property by id").argument("<id>","Property ID").option("-f, --format <format>","Output format").action(async(t,o)=>{try{let e=await b$1(O,{id:t});if(!e.ggnomadProperty)throw new j(`Property ${t} not found`);i(o,e.ggnomadProperty);}catch(e){h$1(e);}}),r$1.command("create").description("Create a property").requiredOption("--name <name>","Property name").requiredOption("--type <t>","Property type").requiredOption("--address <json>","Address JSON").requiredOption("--max-guests <n>","Maximum guests",s).requiredOption("--price-per-night <n>","Price per night",l).requiredOption("--amenities <csv>","Comma-separated amenities").requiredOption("--images <csv>","Comma-separated image URLs").option("--provider <id>","Provider ID").option("--description <s>","Description").option("--bedrooms <n>","Bedrooms",s).option("--bathrooms <n>","Bathrooms",s).option("--check-in-time <s>","Check-in time").option("--check-out-time <s>","Check-out time").option("--currency <c>","Currency code").option("-f, --format <format>","Output format").action(async t=>{try{let o={name:t.name,type:t.type,address:B("address",t.address),maxGuests:t.maxGuests,pricePerNight:t.pricePerNight,amenities:t.amenities.split(",").map(v=>v.trim()),images:t.images.split(",").map(v=>v.trim())};t.provider&&(o.providerId=t.provider),t.description&&(o.description=t.description),t.bedrooms!==void 0&&(o.bedrooms=t.bedrooms),t.bathrooms!==void 0&&(o.bathrooms=t.bathrooms),t.checkInTime&&(o.checkInTime=t.checkInTime),t.checkOutTime&&(o.checkOutTime=t.checkOutTime),t.currency&&(o.currency=t.currency);let e=await b$1(w,{input:o});k$1(`Property created: ${e.createGgnomadProperty.name}`),i(t,e.createGgnomadProperty);}catch(o){h$1(o);}});}function U(m){let r$1=m.command("activities").description("GGNomad activities");r$1.command("list").description("List activities").option("--limit <n>","Page size",s,20).option("--offset <n>","Offset",s,0).option("-f, --format <format>","Output format").action(async t=>{try{let o=await b$1(k,{pagination:{limit:t.limit,offset:t.offset}});i(t,o.ggnomadActivities,{headers:["ID","Name","Category","Difficulty","Duration","Price","Status"],rows:o.ggnomadActivities.map(e=>[r(e.id,12),e.name,e.category,e.difficulty??"-",e.duration??"-",`${e.price??0} ${e.currency??""}`.trim(),e.status])});}catch(o){h$1(o);}}),r$1.command("get").description("Get an activity by id").argument("<id>","Activity ID").option("-f, --format <format>","Output format").action(async(t,o)=>{try{let e=await b$1(E,{id:t});if(!e.ggnomadActivity)throw new j(`Activity ${t} not found`);i(o,e.ggnomadActivity);}catch(e){h$1(e);}});}function M(m){let r$1=m.command("events").description("GGNomad events");r$1.command("list").description("List events").option("--limit <n>","Page size",s,20).option("--offset <n>","Offset",s,0).option("-f, --format <format>","Output format").action(async t=>{try{let o=await b$1(R,{pagination:{limit:t.limit,offset:t.offset}});i(t,o.ggnomadEvents,{headers:["ID","Name","Category","Price","Starts","Status"],rows:o.ggnomadEvents.map(e=>[r(e.id,12),e.name,e.category,`${e.price??0} ${e.currency??""}`.trim(),q$1(e.startsAt),e.status])});}catch(o){h$1(o);}}),r$1.command("get").description("Get an event by id").argument("<id>","Event ID").option("-f, --format <format>","Output format").action(async(t,o)=>{try{let e=await b$1(G,{id:t});if(!e.ggnomadEvent)throw new j(`Event ${t} not found`);i(o,e.ggnomadEvent);}catch(e){h$1(e);}});}function W(m){let r$1=m.command("tours").description("GGNomad tours");r$1.command("list").description("List tours").option("--limit <n>","Page size",s,20).option("--offset <n>","Offset",s,0).option("-f, --format <format>","Output format").action(async t=>{try{let o=await b$1(b,{pagination:{limit:t.limit,offset:t.offset}});i(t,o.ggnomadTours,{headers:["ID","Name","Type","Difficulty","Duration","Price","Status"],rows:o.ggnomadTours.map(e=>[r(e.id,12),e.name,e.type,e.difficulty??"-",e.duration??"-",`${e.price??0} ${e.currency??""}`.trim(),e.status])});}catch(o){h$1(o);}}),r$1.command("get").description("Get a tour by id").argument("<id>","Tour ID").option("-f, --format <format>","Output format").action(async(t,o)=>{try{let e=await b$1(A,{id:t});if(!e.ggnomadTour)throw new j(`Tour ${t} not found`);i(o,e.ggnomadTour);}catch(e){h$1(e);}});}function Y(m){m.command("trips").description("GGNomad transport trips").command("list").description("List trips").option("--limit <n>","Page size",s,20).option("--offset <n>","Offset",s,0).option("-f, --format <format>","Output format").action(async t=>{try{let o=await b$1(S,{pagination:{limit:t.limit,offset:t.offset}});i(t,o.ggnomadTrips,{headers:["ID","Name","Mode","Price","Departs","Eco","Status"],rows:o.ggnomadTrips.map(e=>[r(e.id,12),e.name,e.transportMode,`${e.price??0} ${e.currency??""}`.trim(),q$1(e.departureAt),e.ecoFriendly?"yes":"no",e.status])});}catch(o){h$1(o);}});}function z(m){let r$1=m.command("bookings").description("GGNomad bookings");r$1.command("list").description("List bookings").option("--limit <n>","Page size",s,20).option("--offset <n>","Offset",s,0).option("-f, --format <format>","Output format").action(async t=>{try{let o=await b$1(N,{pagination:{limit:t.limit,offset:t.offset}});i(t,o.ggnomadBookings,{headers:["ID","Ref","Type","Item","Guest","Total","Status","Payment"],rows:o.ggnomadBookings.map(e=>[r(e.id,12),e.referenceCode,e.bookingType,r(e.itemName,20),r(e.guestName,16),`${e.totalPrice} ${e.currency??""}`.trim(),e.status,e.paymentStatus])});}catch(o){h$1(o);}}),r$1.command("create").description("Create a booking").requiredOption("--type <t>","Booking type: ACTIVITY|EVENT|PROPERTY|TOUR|TRIP").requiredOption("--item-id <id>","Item ID being booked").requiredOption("--item-name <name>","Item name").requiredOption("--guest-name <name>","Guest name").requiredOption("--guests <n>","Number of guests",s).requiredOption("--total-price <n>","Total price",l).option("--guest-email <email>","Guest email").option("--guest-phone <phone>","Guest phone").option("--currency <c>","Currency code").option("--check-in <iso>","Check-in (ISO date)").option("--check-out <iso>","Check-out (ISO date)").option("--event-date <iso>","Event date (ISO date)").option("--payment-method <m>","Payment method").option("--special-requests <s>","Special requests").option("-f, --format <format>","Output format").action(async t=>{try{let o={bookingType:t.type.toUpperCase(),itemId:t.itemId,itemName:t.itemName,guestName:t.guestName,guests:t.guests,totalPrice:t.totalPrice};t.guestEmail&&(o.guestEmail=t.guestEmail),t.guestPhone&&(o.guestPhone=t.guestPhone),t.currency&&(o.currency=t.currency),t.checkIn&&(o.checkIn=t.checkIn),t.checkOut&&(o.checkOut=t.checkOut),t.eventDate&&(o.eventDate=t.eventDate),t.paymentMethod&&(o.paymentMethod=t.paymentMethod),t.specialRequests&&(o.specialRequests=t.specialRequests);let e=await b$1(x,{input:o});k$1(`Booking created: ${e.createGgnomadBooking.referenceCode}`),i(t,e.createGgnomadBooking);}catch(o){h$1(o);}}),r$1.command("cancel").description("Cancel a booking").argument("<id>","Booking ID").option("--reason <s>","Cancellation reason").option("-f, --format <format>","Output format").action(async(t,o)=>{try{let e=await b$1($,{id:t,reason:o.reason});k$1(`Booking cancelled: ${e.cancelGgnomadBooking.referenceCode}`),i(o,e.cancelGgnomadBooking);}catch(e){h$1(e);}});}function K(m){let r=m.command("favorites").description("GGNomad favorites");r.command("list").description("List favorites").option("--limit <n>","Page size",s,50).option("--offset <n>","Offset",s,0).option("-f, --format <format>","Output format").action(async t=>{try{let o=await b$1(D,{pagination:{limit:t.limit,offset:t.offset}});i(t,o.ggnomadFavorites);}catch(o){h$1(o);}}),r.command("toggle").description("Toggle a favorite on a target").requiredOption("--target-id <id>","Target ID").requiredOption("--target-type <t>","Target type: ACTIVITY|EVENT|PROPERTY|TOUR|TRIP").option("-f, --format <format>","Output format").action(async t=>{try{let o={targetId:t.targetId,targetType:t.targetType.toUpperCase()},e=await b$1(L,{input:o});k$1(e.toggleGgnomadFavorite?"Added to favorites":"Removed from favorites"),i(t,{favorited:e.toggleGgnomadFavorite});}catch(o){h$1(o);}});}function J(m){let r=m.command("analytics").description("GGNomad analytics & overview");r.command("summary").description("Platform analytics (users, bookings, revenue, conversion, trends)").option("-f, --format <format>","Output format").action(async t=>{try{let o=await b$1(_);i(t,o.ggnomadAnalytics);}catch(o){h$1(o);}}),r.command("overview").description("Overview stats (users, listings, bookings, monthly revenue)").option("-f, --format <format>","Output format").action(async t=>{try{let o=await b$1(q);i(t,o.ggnomadOverviewStats);}catch(o){h$1(o);}});}var H={id:"ggnomad",version:"1.0.0",displayName:"GGNomad",dependsOn:["auth","workspaces"],register(m,r){a(r);let t=m.command("ggnomad").description("GGNomad travel & experiences marketplace");V(t),F(t),U(t),M(t),W(t),Y(t),z(t),K(t),J(t);}},Ft=H;export{Ft as default};