@revfleet/hscli 0.5.3

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 (329) hide show
  1. package/CHANGELOG.md +466 -0
  2. package/LICENSE +21 -0
  3. package/README.md +287 -0
  4. package/SECURITY.md +68 -0
  5. package/dist/cli.d.ts +8 -0
  6. package/dist/cli.js +192 -0
  7. package/dist/cli.js.map +1 -0
  8. package/dist/commands/account/index.d.ts +3 -0
  9. package/dist/commands/account/index.js +65 -0
  10. package/dist/commands/account/index.js.map +1 -0
  11. package/dist/commands/api/index.d.ts +3 -0
  12. package/dist/commands/api/index.js +35 -0
  13. package/dist/commands/api/index.js.map +1 -0
  14. package/dist/commands/auth/index.d.ts +3 -0
  15. package/dist/commands/auth/index.js +229 -0
  16. package/dist/commands/auth/index.js.map +1 -0
  17. package/dist/commands/automation/index.d.ts +3 -0
  18. package/dist/commands/automation/index.js +119 -0
  19. package/dist/commands/automation/index.js.map +1 -0
  20. package/dist/commands/cms/blog-settings.d.ts +3 -0
  21. package/dist/commands/cms/blog-settings.js +70 -0
  22. package/dist/commands/cms/blog-settings.js.map +1 -0
  23. package/dist/commands/cms/content-ops.d.ts +13 -0
  24. package/dist/commands/cms/content-ops.js +262 -0
  25. package/dist/commands/cms/content-ops.js.map +1 -0
  26. package/dist/commands/cms/hubdb.d.ts +3 -0
  27. package/dist/commands/cms/hubdb.js +55 -0
  28. package/dist/commands/cms/hubdb.js.map +1 -0
  29. package/dist/commands/cms/index.d.ts +3 -0
  30. package/dist/commands/cms/index.js +119 -0
  31. package/dist/commands/cms/index.js.map +1 -0
  32. package/dist/commands/cms/source-code.d.ts +3 -0
  33. package/dist/commands/cms/source-code.js +101 -0
  34. package/dist/commands/cms/source-code.js.map +1 -0
  35. package/dist/commands/communication-preferences/index.d.ts +3 -0
  36. package/dist/commands/communication-preferences/index.js +107 -0
  37. package/dist/commands/communication-preferences/index.js.map +1 -0
  38. package/dist/commands/conversations/index.d.ts +3 -0
  39. package/dist/commands/conversations/index.js +233 -0
  40. package/dist/commands/conversations/index.js.map +1 -0
  41. package/dist/commands/crm/associations.d.ts +3 -0
  42. package/dist/commands/crm/associations.js +180 -0
  43. package/dist/commands/crm/associations.js.map +1 -0
  44. package/dist/commands/crm/cards.d.ts +3 -0
  45. package/dist/commands/crm/cards.js +72 -0
  46. package/dist/commands/crm/cards.js.map +1 -0
  47. package/dist/commands/crm/carts.d.ts +3 -0
  48. package/dist/commands/crm/carts.js +5 -0
  49. package/dist/commands/crm/carts.js.map +1 -0
  50. package/dist/commands/crm/communications.d.ts +3 -0
  51. package/dist/commands/crm/communications.js +5 -0
  52. package/dist/commands/crm/communications.js.map +1 -0
  53. package/dist/commands/crm/companies.d.ts +3 -0
  54. package/dist/commands/crm/companies.js +5 -0
  55. package/dist/commands/crm/companies.js.map +1 -0
  56. package/dist/commands/crm/contacts.d.ts +3 -0
  57. package/dist/commands/crm/contacts.js +5 -0
  58. package/dist/commands/crm/contacts.js.map +1 -0
  59. package/dist/commands/crm/custom-objects.d.ts +3 -0
  60. package/dist/commands/crm/custom-objects.js +83 -0
  61. package/dist/commands/crm/custom-objects.js.map +1 -0
  62. package/dist/commands/crm/dated.d.ts +9 -0
  63. package/dist/commands/crm/dated.js +247 -0
  64. package/dist/commands/crm/dated.js.map +1 -0
  65. package/dist/commands/crm/deals.d.ts +3 -0
  66. package/dist/commands/crm/deals.js +5 -0
  67. package/dist/commands/crm/deals.js.map +1 -0
  68. package/dist/commands/crm/describe.d.ts +3 -0
  69. package/dist/commands/crm/describe.js +89 -0
  70. package/dist/commands/crm/describe.js.map +1 -0
  71. package/dist/commands/crm/discounts.d.ts +3 -0
  72. package/dist/commands/crm/discounts.js +5 -0
  73. package/dist/commands/crm/discounts.js.map +1 -0
  74. package/dist/commands/crm/engagements.d.ts +3 -0
  75. package/dist/commands/crm/engagements.js +8 -0
  76. package/dist/commands/crm/engagements.js.map +1 -0
  77. package/dist/commands/crm/fees.d.ts +3 -0
  78. package/dist/commands/crm/fees.js +5 -0
  79. package/dist/commands/crm/fees.js.map +1 -0
  80. package/dist/commands/crm/goals.d.ts +3 -0
  81. package/dist/commands/crm/goals.js +30 -0
  82. package/dist/commands/crm/goals.js.map +1 -0
  83. package/dist/commands/crm/imports.d.ts +3 -0
  84. package/dist/commands/crm/imports.js +45 -0
  85. package/dist/commands/crm/imports.js.map +1 -0
  86. package/dist/commands/crm/index.d.ts +3 -0
  87. package/dist/commands/crm/index.js +64 -0
  88. package/dist/commands/crm/index.js.map +1 -0
  89. package/dist/commands/crm/invoices.d.ts +3 -0
  90. package/dist/commands/crm/invoices.js +5 -0
  91. package/dist/commands/crm/invoices.js.map +1 -0
  92. package/dist/commands/crm/leads.d.ts +3 -0
  93. package/dist/commands/crm/leads.js +5 -0
  94. package/dist/commands/crm/leads.js.map +1 -0
  95. package/dist/commands/crm/line-items.d.ts +3 -0
  96. package/dist/commands/crm/line-items.js +5 -0
  97. package/dist/commands/crm/line-items.js.map +1 -0
  98. package/dist/commands/crm/orders.d.ts +3 -0
  99. package/dist/commands/crm/orders.js +5 -0
  100. package/dist/commands/crm/orders.js.map +1 -0
  101. package/dist/commands/crm/owners.d.ts +3 -0
  102. package/dist/commands/crm/owners.js +22 -0
  103. package/dist/commands/crm/owners.js.map +1 -0
  104. package/dist/commands/crm/payments.d.ts +3 -0
  105. package/dist/commands/crm/payments.js +5 -0
  106. package/dist/commands/crm/payments.js.map +1 -0
  107. package/dist/commands/crm/pipelines.d.ts +3 -0
  108. package/dist/commands/crm/pipelines.js +70 -0
  109. package/dist/commands/crm/pipelines.js.map +1 -0
  110. package/dist/commands/crm/products.d.ts +3 -0
  111. package/dist/commands/crm/products.js +5 -0
  112. package/dist/commands/crm/products.js.map +1 -0
  113. package/dist/commands/crm/properties.d.ts +3 -0
  114. package/dist/commands/crm/properties.js +103 -0
  115. package/dist/commands/crm/properties.js.map +1 -0
  116. package/dist/commands/crm/quotes.d.ts +3 -0
  117. package/dist/commands/crm/quotes.js +5 -0
  118. package/dist/commands/crm/quotes.js.map +1 -0
  119. package/dist/commands/crm/shared.d.ts +17 -0
  120. package/dist/commands/crm/shared.js +256 -0
  121. package/dist/commands/crm/shared.js.map +1 -0
  122. package/dist/commands/crm/subscriptions.d.ts +3 -0
  123. package/dist/commands/crm/subscriptions.js +5 -0
  124. package/dist/commands/crm/subscriptions.js.map +1 -0
  125. package/dist/commands/crm/sync.d.ts +3 -0
  126. package/dist/commands/crm/sync.js +116 -0
  127. package/dist/commands/crm/sync.js.map +1 -0
  128. package/dist/commands/crm/taxes.d.ts +3 -0
  129. package/dist/commands/crm/taxes.js +5 -0
  130. package/dist/commands/crm/taxes.js.map +1 -0
  131. package/dist/commands/crm/tickets.d.ts +3 -0
  132. package/dist/commands/crm/tickets.js +5 -0
  133. package/dist/commands/crm/tickets.js.map +1 -0
  134. package/dist/commands/crm/users.d.ts +3 -0
  135. package/dist/commands/crm/users.js +5 -0
  136. package/dist/commands/crm/users.js.map +1 -0
  137. package/dist/commands/doctor/index.d.ts +3 -0
  138. package/dist/commands/doctor/index.js +232 -0
  139. package/dist/commands/doctor/index.js.map +1 -0
  140. package/dist/commands/domains/shared.d.ts +13 -0
  141. package/dist/commands/domains/shared.js +56 -0
  142. package/dist/commands/domains/shared.js.map +1 -0
  143. package/dist/commands/email-events/index.d.ts +3 -0
  144. package/dist/commands/email-events/index.js +77 -0
  145. package/dist/commands/email-events/index.js.map +1 -0
  146. package/dist/commands/events/index.d.ts +3 -0
  147. package/dist/commands/events/index.js +80 -0
  148. package/dist/commands/events/index.js.map +1 -0
  149. package/dist/commands/exports/index.d.ts +3 -0
  150. package/dist/commands/exports/index.js +45 -0
  151. package/dist/commands/exports/index.js.map +1 -0
  152. package/dist/commands/extensions/index.d.ts +3 -0
  153. package/dist/commands/extensions/index.js +118 -0
  154. package/dist/commands/extensions/index.js.map +1 -0
  155. package/dist/commands/feature-flags/index.d.ts +3 -0
  156. package/dist/commands/feature-flags/index.js +65 -0
  157. package/dist/commands/feature-flags/index.js.map +1 -0
  158. package/dist/commands/files/folders.d.ts +3 -0
  159. package/dist/commands/files/folders.js +74 -0
  160. package/dist/commands/files/folders.js.map +1 -0
  161. package/dist/commands/files/index.d.ts +3 -0
  162. package/dist/commands/files/index.js +30 -0
  163. package/dist/commands/files/index.js.map +1 -0
  164. package/dist/commands/forms/index.d.ts +3 -0
  165. package/dist/commands/forms/index.js +37 -0
  166. package/dist/commands/forms/index.js.map +1 -0
  167. package/dist/commands/integrations/index.d.ts +3 -0
  168. package/dist/commands/integrations/index.js +64 -0
  169. package/dist/commands/integrations/index.js.map +1 -0
  170. package/dist/commands/integrators/index.d.ts +3 -0
  171. package/dist/commands/integrators/index.js +79 -0
  172. package/dist/commands/integrators/index.js.map +1 -0
  173. package/dist/commands/legacy/index.d.ts +13 -0
  174. package/dist/commands/legacy/index.js +254 -0
  175. package/dist/commands/legacy/index.js.map +1 -0
  176. package/dist/commands/legacy-v1/index.d.ts +29 -0
  177. package/dist/commands/legacy-v1/index.js +568 -0
  178. package/dist/commands/legacy-v1/index.js.map +1 -0
  179. package/dist/commands/lists/index.d.ts +3 -0
  180. package/dist/commands/lists/index.js +148 -0
  181. package/dist/commands/lists/index.js.map +1 -0
  182. package/dist/commands/marketing/ads.d.ts +3 -0
  183. package/dist/commands/marketing/ads.js +45 -0
  184. package/dist/commands/marketing/ads.js.map +1 -0
  185. package/dist/commands/marketing/behavioral-events.d.ts +3 -0
  186. package/dist/commands/marketing/behavioral-events.js +38 -0
  187. package/dist/commands/marketing/behavioral-events.js.map +1 -0
  188. package/dist/commands/marketing/events.d.ts +3 -0
  189. package/dist/commands/marketing/events.js +69 -0
  190. package/dist/commands/marketing/events.js.map +1 -0
  191. package/dist/commands/marketing/index.d.ts +3 -0
  192. package/dist/commands/marketing/index.js +55 -0
  193. package/dist/commands/marketing/index.js.map +1 -0
  194. package/dist/commands/marketing/landing-pages.d.ts +3 -0
  195. package/dist/commands/marketing/landing-pages.js +48 -0
  196. package/dist/commands/marketing/landing-pages.js.map +1 -0
  197. package/dist/commands/marketing/seo.d.ts +3 -0
  198. package/dist/commands/marketing/seo.js +35 -0
  199. package/dist/commands/marketing/seo.js.map +1 -0
  200. package/dist/commands/marketing/social.d.ts +3 -0
  201. package/dist/commands/marketing/social.js +45 -0
  202. package/dist/commands/marketing/social.js.map +1 -0
  203. package/dist/commands/marketing/subscriptions.d.ts +3 -0
  204. package/dist/commands/marketing/subscriptions.js +27 -0
  205. package/dist/commands/marketing/subscriptions.js.map +1 -0
  206. package/dist/commands/marketing/transactional.d.ts +3 -0
  207. package/dist/commands/marketing/transactional.js +30 -0
  208. package/dist/commands/marketing/transactional.js.map +1 -0
  209. package/dist/commands/marketing-emails-v1/index.d.ts +3 -0
  210. package/dist/commands/marketing-emails-v1/index.js +72 -0
  211. package/dist/commands/marketing-emails-v1/index.js.map +1 -0
  212. package/dist/commands/mcp.d.ts +2 -0
  213. package/dist/commands/mcp.js +10 -0
  214. package/dist/commands/mcp.js.map +1 -0
  215. package/dist/commands/media-bridge/index.d.ts +3 -0
  216. package/dist/commands/media-bridge/index.js +209 -0
  217. package/dist/commands/media-bridge/index.js.map +1 -0
  218. package/dist/commands/reporting/index.d.ts +3 -0
  219. package/dist/commands/reporting/index.js +73 -0
  220. package/dist/commands/reporting/index.js.map +1 -0
  221. package/dist/commands/sales/calling.d.ts +3 -0
  222. package/dist/commands/sales/calling.js +32 -0
  223. package/dist/commands/sales/calling.js.map +1 -0
  224. package/dist/commands/sales/index.d.ts +3 -0
  225. package/dist/commands/sales/index.js +10 -0
  226. package/dist/commands/sales/index.js.map +1 -0
  227. package/dist/commands/sales/meetings.d.ts +3 -0
  228. package/dist/commands/sales/meetings.js +37 -0
  229. package/dist/commands/sales/meetings.js.map +1 -0
  230. package/dist/commands/sales/sequences.d.ts +3 -0
  231. package/dist/commands/sales/sequences.js +78 -0
  232. package/dist/commands/sales/sequences.js.map +1 -0
  233. package/dist/commands/seed/cms.d.ts +6 -0
  234. package/dist/commands/seed/cms.js +204 -0
  235. package/dist/commands/seed/cms.js.map +1 -0
  236. package/dist/commands/seed/commerce.d.ts +3 -0
  237. package/dist/commands/seed/commerce.js +117 -0
  238. package/dist/commands/seed/commerce.js.map +1 -0
  239. package/dist/commands/seed/context.d.ts +8 -0
  240. package/dist/commands/seed/context.js +76 -0
  241. package/dist/commands/seed/context.js.map +1 -0
  242. package/dist/commands/seed/crm-core.d.ts +3 -0
  243. package/dist/commands/seed/crm-core.js +137 -0
  244. package/dist/commands/seed/crm-core.js.map +1 -0
  245. package/dist/commands/seed/data.d.ts +73 -0
  246. package/dist/commands/seed/data.js +49 -0
  247. package/dist/commands/seed/data.js.map +1 -0
  248. package/dist/commands/seed/engagements.d.ts +3 -0
  249. package/dist/commands/seed/engagements.js +89 -0
  250. package/dist/commands/seed/engagements.js.map +1 -0
  251. package/dist/commands/seed/index.d.ts +3 -0
  252. package/dist/commands/seed/index.js +95 -0
  253. package/dist/commands/seed/index.js.map +1 -0
  254. package/dist/commands/seed/infra.d.ts +6 -0
  255. package/dist/commands/seed/infra.js +163 -0
  256. package/dist/commands/seed/infra.js.map +1 -0
  257. package/dist/commands/seed/marketing.d.ts +3 -0
  258. package/dist/commands/seed/marketing.js +172 -0
  259. package/dist/commands/seed/marketing.js.map +1 -0
  260. package/dist/commands/seed/shared.d.ts +8 -0
  261. package/dist/commands/seed/shared.js +37 -0
  262. package/dist/commands/seed/shared.js.map +1 -0
  263. package/dist/commands/seed/types.d.ts +44 -0
  264. package/dist/commands/seed/types.js +2 -0
  265. package/dist/commands/seed/types.js.map +1 -0
  266. package/dist/commands/service/chatflows.d.ts +3 -0
  267. package/dist/commands/service/chatflows.js +30 -0
  268. package/dist/commands/service/chatflows.js.map +1 -0
  269. package/dist/commands/service/index.d.ts +3 -0
  270. package/dist/commands/service/index.js +25 -0
  271. package/dist/commands/service/index.js.map +1 -0
  272. package/dist/commands/service/knowledge-base.d.ts +3 -0
  273. package/dist/commands/service/knowledge-base.js +19 -0
  274. package/dist/commands/service/knowledge-base.js.map +1 -0
  275. package/dist/commands/service/pipelines.d.ts +3 -0
  276. package/dist/commands/service/pipelines.js +36 -0
  277. package/dist/commands/service/pipelines.js.map +1 -0
  278. package/dist/commands/settings/index.d.ts +3 -0
  279. package/dist/commands/settings/index.js +149 -0
  280. package/dist/commands/settings/index.js.map +1 -0
  281. package/dist/commands/site-search/index.d.ts +3 -0
  282. package/dist/commands/site-search/index.js +36 -0
  283. package/dist/commands/site-search/index.js.map +1 -0
  284. package/dist/commands/timeline/index.d.ts +3 -0
  285. package/dist/commands/timeline/index.js +32 -0
  286. package/dist/commands/timeline/index.js.map +1 -0
  287. package/dist/commands/webhooks/index.d.ts +3 -0
  288. package/dist/commands/webhooks/index.js +41 -0
  289. package/dist/commands/webhooks/index.js.map +1 -0
  290. package/dist/commands/workflows/index.d.ts +3 -0
  291. package/dist/commands/workflows/index.js +13 -0
  292. package/dist/commands/workflows/index.js.map +1 -0
  293. package/dist/core/auth.d.ts +33 -0
  294. package/dist/core/auth.js +137 -0
  295. package/dist/core/auth.js.map +1 -0
  296. package/dist/core/capabilities.d.ts +60 -0
  297. package/dist/core/capabilities.js +559 -0
  298. package/dist/core/capabilities.js.map +1 -0
  299. package/dist/core/http.d.ts +47 -0
  300. package/dist/core/http.js +433 -0
  301. package/dist/core/http.js.map +1 -0
  302. package/dist/core/output.d.ts +23 -0
  303. package/dist/core/output.js +197 -0
  304. package/dist/core/output.js.map +1 -0
  305. package/dist/core/permissions.d.ts +9 -0
  306. package/dist/core/permissions.js +27 -0
  307. package/dist/core/permissions.js.map +1 -0
  308. package/dist/core/plugins.d.ts +42 -0
  309. package/dist/core/plugins.js +94 -0
  310. package/dist/core/plugins.js.map +1 -0
  311. package/dist/core/policy.d.ts +2 -0
  312. package/dist/core/policy.js +38 -0
  313. package/dist/core/policy.js.map +1 -0
  314. package/dist/core/schema-cache.d.ts +56 -0
  315. package/dist/core/schema-cache.js +338 -0
  316. package/dist/core/schema-cache.js.map +1 -0
  317. package/dist/core/schemas.d.ts +96 -0
  318. package/dist/core/schemas.js +104 -0
  319. package/dist/core/schemas.js.map +1 -0
  320. package/dist/core/urls.d.ts +50 -0
  321. package/dist/core/urls.js +122 -0
  322. package/dist/core/urls.js.map +1 -0
  323. package/dist/core/vault.d.ts +37 -0
  324. package/dist/core/vault.js +143 -0
  325. package/dist/core/vault.js.map +1 -0
  326. package/dist/mcp/server.d.ts +5 -0
  327. package/dist/mcp/server.js +680 -0
  328. package/dist/mcp/server.js.map +1 -0
  329. package/package.json +84 -0
@@ -0,0 +1,89 @@
1
+ import { getToken } from "../../core/auth.js";
2
+ import { loadCrmObjectSchema, validateCrmPayload } from "../../core/schema-cache.js";
3
+ import { CliError, printResult } from "../../core/output.js";
4
+ import { OBJECT_COMMAND_TYPES, parseJsonPayload, parseNumberFlag, parseSupportedObjectType } from "./shared.js";
5
+ export function registerDescribe(crm, getCtx) {
6
+ crm
7
+ .command("describe")
8
+ .argument("<objectType>")
9
+ .description("Describe CRM schema (properties, enums, required, pipelines, association labels)")
10
+ .option("--offline", "Use local schema cache only")
11
+ .option("--refresh-cache", "Force refresh from API")
12
+ .option("--ttl-hours <n>", "Schema cache TTL in hours", "24")
13
+ .action(async (objectType, opts) => {
14
+ const ctx = getCtx();
15
+ const token = getToken(ctx.profile);
16
+ const objectTypeValue = parseSupportedObjectType(objectType, OBJECT_COMMAND_TYPES, "objectType");
17
+ const ttlHours = parseNumberFlag(String(opts.ttlHours), "--ttl-hours");
18
+ const loaded = await loadCrmObjectSchema({
19
+ profile: ctx.profile,
20
+ token,
21
+ objectType: objectTypeValue,
22
+ offline: Boolean(opts.offline),
23
+ refresh: Boolean(opts.refreshCache),
24
+ ttlMs: ttlHours * 3_600_000,
25
+ });
26
+ const schema = loaded.schema;
27
+ const requiredFields = schema.properties.filter((property) => property.required).map((property) => property.name);
28
+ const enumValues = Object.fromEntries(schema.properties
29
+ .filter((property) => property.options.length > 0)
30
+ .map((property) => [property.name, property.options.map((option) => option.value)]));
31
+ printResult(ctx, {
32
+ objectType: schema.objectType,
33
+ source: loaded.source,
34
+ stale: Boolean(loaded.stale),
35
+ fetchedAt: schema.fetchedAt,
36
+ propertyCount: schema.properties.length,
37
+ requiredFields,
38
+ completionHints: {
39
+ propertyNames: schema.properties.map((property) => property.name),
40
+ enumValues,
41
+ },
42
+ properties: schema.properties,
43
+ pipelines: schema.pipelines,
44
+ associationLabels: schema.associationLabels,
45
+ });
46
+ });
47
+ crm
48
+ .command("validate")
49
+ .argument("<objectType>")
50
+ .requiredOption("--data <payload>", "Payload JSON to validate")
51
+ .description("Validate payload against cached/remote CRM property schema before API calls")
52
+ .option("--offline", "Use local schema cache only")
53
+ .option("--refresh-cache", "Force refresh from API")
54
+ .option("--ttl-hours <n>", "Schema cache TTL in hours", "24")
55
+ .action(async (objectType, opts) => {
56
+ const ctx = getCtx();
57
+ const token = getToken(ctx.profile);
58
+ const objectTypeValue = parseSupportedObjectType(objectType, OBJECT_COMMAND_TYPES, "objectType");
59
+ const ttlHours = parseNumberFlag(String(opts.ttlHours), "--ttl-hours");
60
+ const payload = parseJsonPayload(opts.data);
61
+ const loaded = await loadCrmObjectSchema({
62
+ profile: ctx.profile,
63
+ token,
64
+ objectType: objectTypeValue,
65
+ offline: Boolean(opts.offline),
66
+ refresh: Boolean(opts.refreshCache),
67
+ ttlMs: ttlHours * 3_600_000,
68
+ });
69
+ const result = validateCrmPayload(loaded.schema, payload);
70
+ if (!result.valid) {
71
+ throw new CliError("PAYLOAD_VALIDATION_FAILED", "Payload failed client-side schema validation", undefined, {
72
+ objectType: objectTypeValue,
73
+ source: loaded.source,
74
+ stale: Boolean(loaded.stale),
75
+ errors: result.errors,
76
+ warnings: result.warnings,
77
+ });
78
+ }
79
+ printResult(ctx, {
80
+ objectType: objectTypeValue,
81
+ source: loaded.source,
82
+ stale: Boolean(loaded.stale),
83
+ valid: true,
84
+ errors: result.errors,
85
+ warnings: result.warnings,
86
+ });
87
+ });
88
+ }
89
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AE,SAAS,EAAE;gBACzG,UAAU,EAAE,eAAe;gBAC3B,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;gBAC5B,MAAM,EAAE,MAAM,CAAC,MAAM;gBACrB,QAAQ,EAAE,MAAM,CAAC,QAAQ;aAC1B,CAAC,CAAC;QACL,CAAC;QAED,WAAW,CAAC,GAAG,EAAE;YACf,UAAU,EAAE,eAAe;YAC3B,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;YAC5B,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,QAAQ,EAAE,MAAM,CAAC,QAAQ;SAC1B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ import type { CliContext } from "../../core/output.js";
3
+ export declare function registerDiscounts(crm: Command, getCtx: () => CliContext): void;
@@ -0,0 +1,5 @@
1
+ import { registerObjectCommands } from "./shared.js";
2
+ export function registerDiscounts(crm, getCtx) {
3
+ registerObjectCommands(crm, "discounts", getCtx);
4
+ }
5
+ //# sourceMappingURL=discounts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"discounts.js","sourceRoot":"","sources":["../../../src/commands/crm/discounts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,UAAU,iBAAiB,CAAC,GAAY,EAAE,MAAwB;IACtE,sBAAsB,CAAC,GAAG,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC;AACnD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ import type { CliContext } from "../../core/output.js";
3
+ export declare function registerEngagements(crm: Command, getCtx: () => CliContext): void;
@@ -0,0 +1,8 @@
1
+ import { ENGAGEMENT_OBJECT_TYPES, registerObjectCommands } from "./shared.js";
2
+ export function registerEngagements(crm, getCtx) {
3
+ const engagements = crm.command("engagements").description("Engagement objects: notes, calls, tasks, emails, meetings");
4
+ for (const objectType of ENGAGEMENT_OBJECT_TYPES) {
5
+ registerObjectCommands(engagements, objectType, getCtx);
6
+ }
7
+ }
8
+ //# sourceMappingURL=engagements.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"engagements.js","sourceRoot":"","sources":["../../../src/commands/crm/engagements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAE9E,MAAM,UAAU,mBAAmB,CAAC,GAAY,EAAE,MAAwB;IACxE,MAAM,WAAW,GAAG,GAAG,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,WAAW,CAAC,2DAA2D,CAAC,CAAC;IACxH,KAAK,MAAM,UAAU,IAAI,uBAAuB,EAAE,CAAC;QACjD,sBAAsB,CAAC,WAAW,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAC1D,CAAC;AACH,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ import type { CliContext } from "../../core/output.js";
3
+ export declare function registerFees(crm: Command, getCtx: () => CliContext): void;
@@ -0,0 +1,5 @@
1
+ import { registerObjectCommands } from "./shared.js";
2
+ export function registerFees(crm, getCtx) {
3
+ registerObjectCommands(crm, "fees", getCtx);
4
+ }
5
+ //# sourceMappingURL=fees.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fees.js","sourceRoot":"","sources":["../../../src/commands/crm/fees.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,UAAU,YAAY,CAAC,GAAY,EAAE,MAAwB;IACjE,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAC9C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ import type { CliContext } from "../../core/output.js";
3
+ export declare function registerGoals(crm: Command, getCtx: () => CliContext): void;
@@ -0,0 +1,30 @@
1
+ import { createClient } from "../../core/http.js";
2
+ import { printResult } from "../../core/output.js";
3
+ import { encodePathSegment, parseNumberFlag, appendOptional } from "./shared.js";
4
+ export function registerGoals(crm, getCtx) {
5
+ const goals = crm.command("goals").description("goals commands");
6
+ goals
7
+ .command("list")
8
+ .option("--limit <n>", "Max records", "10")
9
+ .option("--after <cursor>", "Paging cursor")
10
+ .option("--properties <csv>", "Properties CSV")
11
+ .action(async (opts) => {
12
+ const ctx = getCtx();
13
+ const client = createClient(ctx.profile);
14
+ const params = new URLSearchParams();
15
+ params.set("limit", String(parseNumberFlag(opts.limit, "--limit")));
16
+ appendOptional(params, "after", opts.after);
17
+ appendOptional(params, "properties", opts.properties);
18
+ const res = await client.request(`/crm/v3/objects/goals?${params.toString()}`);
19
+ printResult(ctx, res);
20
+ });
21
+ goals.command("get").argument("<id>").option("--properties <csv>", "Properties CSV").action(async (id, opts) => {
22
+ const ctx = getCtx();
23
+ const client = createClient(ctx.profile);
24
+ const idSegment = encodePathSegment(id, "id");
25
+ const suffix = opts.properties ? `?properties=${encodeURIComponent(opts.properties)}` : "";
26
+ const res = await client.request(`/crm/v3/objects/goals/${idSegment}${suffix}`);
27
+ printResult(ctx, res);
28
+ });
29
+ }
30
+ //# sourceMappingURL=goals.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"goals.js","sourceRoot":"","sources":["../../../src/commands/crm/goals.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEjF,MAAM,UAAU,aAAa,CAAC,GAAY,EAAE,MAAwB;IAClE,MAAM,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,C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AC;QAC9C,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,eAAe,kBAAkB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3F,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,yBAAyB,SAAS,GAAG,MAAM,EAAE,CAAC,CAAC;QAChF,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ import type { CliContext } from "../../core/output.js";
3
+ export declare function registerImports(crm: Command, getCtx: () => CliContext): void;
@@ -0,0 +1,45 @@
1
+ import { createClient } from "../../core/http.js";
2
+ import { printResult } from "../../core/output.js";
3
+ import { encodePathSegment, maybeWrite, parseJsonPayload, parseNumberFlag } from "./shared.js";
4
+ export function registerImports(crm, getCtx) {
5
+ const imports = crm.command("imports").description("HubSpot CRM imports");
6
+ imports
7
+ .command("create")
8
+ .requiredOption("--data <payload>", "Import payload JSON")
9
+ .action(async (opts) => {
10
+ const ctx = getCtx();
11
+ const client = createClient(ctx.profile);
12
+ const payload = parseJsonPayload(opts.data);
13
+ const res = await maybeWrite(ctx, client, "POST", "/crm/v3/imports", payload);
14
+ printResult(ctx, res);
15
+ });
16
+ imports
17
+ .command("list")
18
+ .option("--limit <n>", "Max records", "100")
19
+ .option("--after <cursor>", "Paging cursor")
20
+ .action(async (opts) => {
21
+ const ctx = getCtx();
22
+ const client = createClient(ctx.profile);
23
+ const params = new URLSearchParams();
24
+ params.set("limit", String(parseNumberFlag(opts.limit, "--limit")));
25
+ if (opts.after)
26
+ params.set("after", opts.after);
27
+ const res = await client.request(`/crm/v3/imports?${params.toString()}`);
28
+ printResult(ctx, res);
29
+ });
30
+ imports.command("get").argument("<importId>").action(async (importId) => {
31
+ const ctx = getCtx();
32
+ const client = createClient(ctx.profile);
33
+ const importIdSegment = encodePathSegment(importId, "importId");
34
+ const res = await client.request(`/crm/v3/imports/${importIdSegment}`);
35
+ printResult(ctx, res);
36
+ });
37
+ imports.command("errors").argument("<importId>").action(async (importId) => {
38
+ const ctx = getCtx();
39
+ const client = createClient(ctx.profile);
40
+ const importIdSegment = encodePathSegment(importId, "importId");
41
+ const res = await client.request(`/crm/v3/imports/${importIdSegment}/errors`);
42
+ printResult(ctx, res);
43
+ });
44
+ }
45
+ //# sourceMappingURL=imports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"imports.js","sourceRoot":"","sources":["../../../src/commands/crm/imports.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE/F,MAAM,UAAU,eAAe,CAAC,GAAY,EAAE,MAAwB;IACpE,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,qBAAqB,CAAC,CAAC;IAE1E,OAAO;SACJ,OAAO,CAAC,QAAQ,CAAC;SACjB,cAAc,CAAC,kBAAkB,EAAE,qBAAqB,CAAC;SACzD,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;QACrB,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;QACrB,MAAM,MAAM,GAAG,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACzC,MAAM,OAAO,GAAG,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC5C,MAAM,GAAG,GAAG,MAAM,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC9E,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;IAEL,O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AQ,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE;QACzE,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;QACrB,MAAM,MAAM,GAAG,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACzC,MAAM,eAAe,GAAG,iBAAiB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QAChE,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,mBAAmB,eAAe,SAAS,CAAC,CAAC;QAC9E,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ import type { CliContext } from "../../core/output.js";
3
+ export declare function registerCrm(program: Command, getCtx: () => CliContext): void;
@@ -0,0 +1,64 @@
1
+ import { registerContacts } from "./contacts.js";
2
+ import { registerCompanies } from "./companies.js";
3
+ import { registerDeals } from "./deals.js";
4
+ import { registerProperties } from "./properties.js";
5
+ import { registerAssociations } from "./associations.js";
6
+ import { registerOwners } from "./owners.js";
7
+ import { registerPipelines } from "./pipelines.js";
8
+ import { registerImports } from "./imports.js";
9
+ import { registerTickets } from "./tickets.js";
10
+ import { registerCustomObjects } from "./custom-objects.js";
11
+ import { registerEngagements } from "./engagements.js";
12
+ import { registerSync } from "./sync.js";
13
+ import { registerDescribe } from "./describe.js";
14
+ import { registerQuotes } from "./quotes.js";
15
+ import { registerProducts } from "./products.js";
16
+ import { registerLineItems } from "./line-items.js";
17
+ import { registerGoals } from "./goals.js";
18
+ import { registerPayments } from "./payments.js";
19
+ import { registerInvoices } from "./invoices.js";
20
+ import { registerSubscriptions } from "./subscriptions.js";
21
+ import { registerCards } from "./cards.js";
22
+ import { registerLeads } from "./leads.js";
23
+ import { registerCarts } from "./carts.js";
24
+ import { registerOrders } from "./orders.js";
25
+ import { registerDiscounts } from "./discounts.js";
26
+ import { registerFees } from "./fees.js";
27
+ import { registerTaxes } from "./taxes.js";
28
+ import { registerCommunications } from "./communications.js";
29
+ import { registerUsersObject } from "./users.js";
30
+ import { registerDatedApi } from "./dated.js";
31
+ export function registerCrm(program, getCtx) {
32
+ const crm = program.command("crm").description("HubSpot CRM objects");
33
+ registerContacts(crm, getCtx);
34
+ registerCompanies(crm, getCtx);
35
+ registerDeals(crm, getCtx);
36
+ registerTickets(crm, getCtx);
37
+ registerProperties(crm, getCtx);
38
+ registerAssociations(crm, getCtx);
39
+ registerOwners(crm, getCtx);
40
+ registerPipelines(crm, getCtx);
41
+ registerImports(crm, getCtx);
42
+ registerCustomObjects(crm, getCtx);
43
+ registerEngagements(crm, getCtx);
44
+ registerSync(crm, getCtx);
45
+ registerDescribe(crm, getCtx);
46
+ registerQuotes(crm, getCtx);
47
+ registerProducts(crm, getCtx);
48
+ registerLineItems(crm, getCtx);
49
+ registerGoals(crm, getCtx);
50
+ registerPayments(crm, getCtx);
51
+ registerInvoices(crm, getCtx);
52
+ registerSubscriptions(crm, getCtx);
53
+ registerCards(crm, getCtx);
54
+ registerLeads(crm, getCtx);
55
+ registerCarts(crm, getCtx);
56
+ registerOrders(crm, getCtx);
57
+ registerDiscounts(crm, getCtx);
58
+ registerFees(crm, getCtx);
59
+ registerTaxes(crm, getCtx);
60
+ registerCommunications(crm, getCtx);
61
+ registerUsersObject(crm, getCtx);
62
+ registerDatedApi(crm, getCtx);
63
+ }
64
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/crm/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACrD,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CAAC,CAAC;IACnC,aAAa,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAC3B,aAAa,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAC3B,aAAa,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAC3B,cAAc,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAC5B,iBAAiB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAC/B,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAC1B,aAAa,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAC3B,sBAAsB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IACpC,mBAAmB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IACjC,gBAAgB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;AAChC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ import type { CliContext } from "../../core/output.js";
3
+ export declare function registerInvoices(crm: Command, getCtx: () => CliContext): void;
@@ -0,0 +1,5 @@
1
+ import { registerObjectCommands } from "./shared.js";
2
+ export function registerInvoices(crm, getCtx) {
3
+ registerObjectCommands(crm, "invoices", getCtx);
4
+ }
5
+ //# sourceMappingURL=invoices.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoices.js","sourceRoot":"","sources":["../../../src/commands/crm/invoices.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,UAAU,gBAAgB,CAAC,GAAY,EAAE,MAAwB;IACrE,sBAAsB,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;AAClD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ import type { CliContext } from "../../core/output.js";
3
+ export declare function registerLeads(crm: Command, getCtx: () => CliContext): void;
@@ -0,0 +1,5 @@
1
+ import { registerObjectCommands } from "./shared.js";
2
+ export function registerLeads(crm, getCtx) {
3
+ registerObjectCommands(crm, "leads", getCtx);
4
+ }
5
+ //# sourceMappingURL=leads.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"leads.js","sourceRoot":"","sources":["../../../src/commands/crm/leads.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,UAAU,aAAa,CAAC,GAAY,EAAE,MAAwB;IAClE,sBAAsB,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ import type { CliContext } from "../../core/output.js";
3
+ export declare function registerLineItems(crm: Command, getCtx: () => CliContext): void;
@@ -0,0 +1,5 @@
1
+ import { registerObjectCommands } from "./shared.js";
2
+ export function registerLineItems(crm, getCtx) {
3
+ registerObjectCommands(crm, "line_items", getCtx);
4
+ }
5
+ //# sourceMappingURL=line-items.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"line-items.js","sourceRoot":"","sources":["../../../src/commands/crm/line-items.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,UAAU,iBAAiB,CAAC,GAAY,EAAE,MAAwB;IACtE,sBAAsB,CAAC,GAAG,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC;AACpD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ import type { CliContext } from "../../core/output.js";
3
+ export declare function registerOrders(crm: Command, getCtx: () => CliContext): void;
@@ -0,0 +1,5 @@
1
+ import { registerObjectCommands } from "./shared.js";
2
+ export function registerOrders(crm, getCtx) {
3
+ registerObjectCommands(crm, "orders", getCtx);
4
+ }
5
+ //# sourceMappingURL=orders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orders.js","sourceRoot":"","sources":["../../../src/commands/crm/orders.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,UAAU,cAAc,CAAC,GAAY,EAAE,MAAwB;IACnE,sBAAsB,CAAC,GAAG,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;AAChD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ import type { CliContext } from "../../core/output.js";
3
+ export declare function registerOwners(crm: Command, getCtx: () => CliContext): void;
@@ -0,0 +1,22 @@
1
+ import { createClient } from "../../core/http.js";
2
+ import { printResult } from "../../core/output.js";
3
+ import { appendOptional, parseNumberFlag } from "./shared.js";
4
+ export function registerOwners(crm, getCtx) {
5
+ const owners = crm.command("owners").description("HubSpot owners");
6
+ owners
7
+ .command("list")
8
+ .option("--limit <n>", "Max records", "100")
9
+ .option("--after <cursor>", "Paging cursor")
10
+ .option("--email <email>", "Filter by owner email")
11
+ .action(async (opts) => {
12
+ const ctx = getCtx();
13
+ const client = createClient(ctx.profile);
14
+ const params = new URLSearchParams();
15
+ params.set("limit", String(parseNumberFlag(opts.limit, "--limit")));
16
+ appendOptional(params, "after", opts.after);
17
+ appendOptional(params, "email", opts.email);
18
+ const res = await client.request(`/crm/v3/owners/?${params.toString()}`);
19
+ printResult(ctx, res);
20
+ });
21
+ }
22
+ //# sourceMappingURL=owners.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"owners.js","sourceRoot":"","sources":["../../../src/commands/crm/owners.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9D,MAAM,UAAU,cAAc,CAAC,GAAY,EAAE,MAAwB;IACnE,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC;IAEnE,MAAM;SACH,OAAO,CAAC,MAAM,CAAC;SACf,MAAM,CAAC,aAAa,EAAE,aAAa,EAAE,KAAK,CAAC;SAC3C,MAAM,CAAC,kBAAkB,EAAE,eAAe,CAAC;SAC3C,MAAM,CAAC,iBAAiB,EAAE,uBAAuB,CAAC;SAClD,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE;QACrB,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;QACrB,MAAM,MAAM,GAAG,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACzC,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;QACrC,MAAM,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;QACpE,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QAC5C,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QAC5C,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,mBAAmB,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QACzE,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ import type { CliContext } from "../../core/output.js";
3
+ export declare function registerPayments(crm: Command, getCtx: () => CliContext): void;
@@ -0,0 +1,5 @@
1
+ import { registerObjectCommands } from "./shared.js";
2
+ export function registerPayments(crm, getCtx) {
3
+ registerObjectCommands(crm, "commerce_payments", getCtx);
4
+ }
5
+ //# sourceMappingURL=payments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payments.js","sourceRoot":"","sources":["../../../src/commands/crm/payments.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,UAAU,gBAAgB,CAAC,GAAY,EAAE,MAAwB;IACrE,sBAAsB,CAAC,GAAG,EAAE,mBAAmB,EAAE,MAAM,CAAC,CAAC;AAC3D,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ import type { CliContext } from "../../core/output.js";
3
+ export declare function registerPipelines(crm: Command, getCtx: () => CliContext): void;
@@ -0,0 +1,70 @@
1
+ import { createClient } from "../../core/http.js";
2
+ import { printResult } from "../../core/output.js";
3
+ import { PIPELINE_OBJECT_TYPES, encodePathSegment, maybeWrite, parseJsonPayload, parseSupportedObjectType } from "./shared.js";
4
+ export function registerPipelines(crm, getCtx) {
5
+ const pipelines = crm.command("pipelines").description("HubSpot pipelines");
6
+ pipelines.command("list").argument("<objectType>").action(async (objectType) => {
7
+ const ctx = getCtx();
8
+ const client = createClient(ctx.profile);
9
+ const objectTypeValue = parseSupportedObjectType(objectType, PIPELINE_OBJECT_TYPES, "objectType");
10
+ const objectTypeSegment = encodePathSegment(objectTypeValue, "objectType");
11
+ const res = await client.request(`/crm/v3/pipelines/${objectTypeSegment}`);
12
+ printResult(ctx, res);
13
+ });
14
+ pipelines.command("get").argument("<objectType>").argument("<pipelineId>").action(async (objectType, pipelineId) => {
15
+ const ctx = getCtx();
16
+ const client = createClient(ctx.profile);
17
+ const objectTypeValue = parseSupportedObjectType(objectType, PIPELINE_OBJECT_TYPES, "objectType");
18
+ const objectTypeSegment = encodePathSegment(objectTypeValue, "objectType");
19
+ const pipelineIdSegment = encodePathSegment(pipelineId, "pipelineId");
20
+ const res = await client.request(`/crm/v3/pipelines/${objectTypeSegment}/${pipelineIdSegment}`);
21
+ printResult(ctx, res);
22
+ });
23
+ pipelines
24
+ .command("create")
25
+ .argument("<objectType>")
26
+ .requiredOption("--data <payload>", "Pipeline payload JSON")
27
+ .action(async (objectType, opts) => {
28
+ const ctx = getCtx();
29
+ const client = createClient(ctx.profile);
30
+ const objectTypeValue = parseSupportedObjectType(objectType, PIPELINE_OBJECT_TYPES, "objectType");
31
+ const objectTypeSegment = encodePathSegment(objectTypeValue, "objectType");
32
+ const payload = parseJsonPayload(opts.data);
33
+ const res = await maybeWrite(ctx, client, "POST", `/crm/v3/pipelines/${objectTypeSegment}`, payload);
34
+ printResult(ctx, res);
35
+ });
36
+ pipelines
37
+ .command("update")
38
+ .argument("<objectType>")
39
+ .argument("<pipelineId>")
40
+ .requiredOption("--data <payload>", "Pipeline update payload JSON")
41
+ .action(async (objectType, pipelineId, opts) => {
42
+ const ctx = getCtx();
43
+ const client = createClient(ctx.profile);
44
+ const objectTypeValue = parseSupportedObjectType(objectType, PIPELINE_OBJECT_TYPES, "objectType");
45
+ const objectTypeSegment = encodePathSegment(objectTypeValue, "objectType");
46
+ const pipelineIdSegment = encodePathSegment(pipelineId, "pipelineId");
47
+ const payload = parseJsonPayload(opts.data);
48
+ const res = await maybeWrite(ctx, client, "PATCH", `/crm/v3/pipelines/${objectTypeSegment}/${pipelineIdSegment}`, payload);
49
+ printResult(ctx, res);
50
+ });
51
+ pipelines.command("delete").argument("<objectType>").argument("<pipelineId>").action(async (objectType, pipelineId) => {
52
+ const ctx = getCtx();
53
+ const client = createClient(ctx.profile);
54
+ const objectTypeValue = parseSupportedObjectType(objectType, PIPELINE_OBJECT_TYPES, "objectType");
55
+ const objectTypeSegment = encodePathSegment(objectTypeValue, "objectType");
56
+ const pipelineIdSegment = encodePathSegment(pipelineId, "pipelineId");
57
+ const res = await maybeWrite(ctx, client, "DELETE", `/crm/v3/pipelines/${objectTypeSegment}/${pipelineIdSegment}`);
58
+ printResult(ctx, res);
59
+ });
60
+ pipelines.command("stages").argument("<objectType>").argument("<pipelineId>").action(async (objectType, pipelineId) => {
61
+ const ctx = getCtx();
62
+ const client = createClient(ctx.profile);
63
+ const objectTypeValue = parseSupportedObjectType(objectType, PIPELINE_OBJECT_TYPES, "objectType");
64
+ const objectTypeSegment = encodePathSegment(objectTypeValue, "objectType");
65
+ const pipelineIdSegment = encodePathSegment(pipelineId, "pipelineId");
66
+ const res = await client.request(`/crm/v3/pipelines/${objectTypeSegment}/${pipelineIdSegment}/stages`);
67
+ printResult(ctx, res);
68
+ });
69
+ }
70
+ //# sourceMappingURL=pipelines.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipelines.js","sourceRoot":"","sources":["../../../src/commands/crm/pipelines.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,UAAU,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAE/H,MAAM,UAAU,iBAAiB,CAAC,GAAY,EAAE,MAAwB;IACtE,MAAM,SAAS,GAAG,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC;IAE5E,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE;QAC7E,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;QACrB,MAAM,MAAM,GAAG,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACzC,MAAM,eAAe,GAAG,wBAAwB,CAAC,UAAU,EAAE,qBAAqB,EAAE,YAAY,CAAC,CAAC;QAClG,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;QAC3E,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,qBAAqB,iBAAiB,EAAE,CAAC,CAAC;QAC3E,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,MAAM,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CAAC;QAClG,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;QAC3E,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QACtE,MAAM,GAAG,GAAG,MAAM,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,qBAAqB,iBAAiB,IAAI,iBAAiB,EAAE,CAAC,CAAC;QACnH,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;IAEH,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE;QACpH,MAAM,GAAG,GAAG,MAAM,EAAE,CAAC;QACrB,MAAM,MAAM,GAAG,YAAY,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACzC,MAAM,eAAe,GAAG,wBAAwB,CAAC,UAAU,EAAE,qBAAqB,EAAE,YAAY,CAAC,CAAC;QAClG,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;QAC3E,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QACtE,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,qBAAqB,iBAAiB,IAAI,iBAAiB,SAAS,CAAC,CAAC;QACvG,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ import type { CliContext } from "../../core/output.js";
3
+ export declare function registerProducts(crm: Command, getCtx: () => CliContext): void;
@@ -0,0 +1,5 @@
1
+ import { registerObjectCommands } from "./shared.js";
2
+ export function registerProducts(crm, getCtx) {
3
+ registerObjectCommands(crm, "products", getCtx);
4
+ }
5
+ //# sourceMappingURL=products.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"products.js","sourceRoot":"","sources":["../../../src/commands/crm/products.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,UAAU,gBAAgB,CAAC,GAAY,EAAE,MAAwB;IACrE,sBAAsB,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;AAClD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Command } from "commander";
2
+ import type { CliContext } from "../../core/output.js";
3
+ export declare function registerProperties(crm: Command, getCtx: () => CliContext): void;