leadsnap-test-mcp 0.0.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 (432) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +412 -0
  3. package/api-promise.d.mts +3 -0
  4. package/api-promise.d.mts.map +1 -0
  5. package/api-promise.d.ts +3 -0
  6. package/api-promise.d.ts.map +1 -0
  7. package/api-promise.js +6 -0
  8. package/api-promise.js.map +1 -0
  9. package/api-promise.mjs +3 -0
  10. package/api-promise.mjs.map +1 -0
  11. package/client.d.mts +199 -0
  12. package/client.d.mts.map +1 -0
  13. package/client.d.ts +199 -0
  14. package/client.d.ts.map +1 -0
  15. package/client.js +488 -0
  16. package/client.js.map +1 -0
  17. package/client.mjs +484 -0
  18. package/client.mjs.map +1 -0
  19. package/core/api-promise.d.mts +46 -0
  20. package/core/api-promise.d.mts.map +1 -0
  21. package/core/api-promise.d.ts +46 -0
  22. package/core/api-promise.d.ts.map +1 -0
  23. package/core/api-promise.js +74 -0
  24. package/core/api-promise.js.map +1 -0
  25. package/core/api-promise.mjs +70 -0
  26. package/core/api-promise.mjs.map +1 -0
  27. package/core/error.d.mts +46 -0
  28. package/core/error.d.mts.map +1 -0
  29. package/core/error.d.ts +46 -0
  30. package/core/error.d.ts.map +1 -0
  31. package/core/error.js +113 -0
  32. package/core/error.js.map +1 -0
  33. package/core/error.mjs +97 -0
  34. package/core/error.mjs.map +1 -0
  35. package/core/resource.d.mts +6 -0
  36. package/core/resource.d.mts.map +1 -0
  37. package/core/resource.d.ts +6 -0
  38. package/core/resource.d.ts.map +1 -0
  39. package/core/resource.js +11 -0
  40. package/core/resource.js.map +1 -0
  41. package/core/resource.mjs +7 -0
  42. package/core/resource.mjs.map +1 -0
  43. package/core/uploads.d.mts +3 -0
  44. package/core/uploads.d.mts.map +1 -0
  45. package/core/uploads.d.ts +3 -0
  46. package/core/uploads.d.ts.map +1 -0
  47. package/core/uploads.js +6 -0
  48. package/core/uploads.js.map +1 -0
  49. package/core/uploads.mjs +2 -0
  50. package/core/uploads.mjs.map +1 -0
  51. package/error.d.mts +3 -0
  52. package/error.d.mts.map +1 -0
  53. package/error.d.ts +3 -0
  54. package/error.d.ts.map +1 -0
  55. package/error.js +6 -0
  56. package/error.js.map +1 -0
  57. package/error.mjs +3 -0
  58. package/error.mjs.map +1 -0
  59. package/index.d.mts +6 -0
  60. package/index.d.mts.map +1 -0
  61. package/index.d.ts +6 -0
  62. package/index.d.ts.map +1 -0
  63. package/index.js +30 -0
  64. package/index.js.map +1 -0
  65. package/index.mjs +7 -0
  66. package/index.mjs.map +1 -0
  67. package/internal/builtin-types.d.mts +73 -0
  68. package/internal/builtin-types.d.mts.map +1 -0
  69. package/internal/builtin-types.d.ts +73 -0
  70. package/internal/builtin-types.d.ts.map +1 -0
  71. package/internal/builtin-types.js +4 -0
  72. package/internal/builtin-types.js.map +1 -0
  73. package/internal/builtin-types.mjs +3 -0
  74. package/internal/builtin-types.mjs.map +1 -0
  75. package/internal/detect-platform.d.mts +15 -0
  76. package/internal/detect-platform.d.mts.map +1 -0
  77. package/internal/detect-platform.d.ts +15 -0
  78. package/internal/detect-platform.d.ts.map +1 -0
  79. package/internal/detect-platform.js +162 -0
  80. package/internal/detect-platform.js.map +1 -0
  81. package/internal/detect-platform.mjs +157 -0
  82. package/internal/detect-platform.mjs.map +1 -0
  83. package/internal/errors.d.mts +3 -0
  84. package/internal/errors.d.mts.map +1 -0
  85. package/internal/errors.d.ts +3 -0
  86. package/internal/errors.d.ts.map +1 -0
  87. package/internal/errors.js +41 -0
  88. package/internal/errors.js.map +1 -0
  89. package/internal/errors.mjs +36 -0
  90. package/internal/errors.mjs.map +1 -0
  91. package/internal/headers.d.mts +20 -0
  92. package/internal/headers.d.mts.map +1 -0
  93. package/internal/headers.d.ts +20 -0
  94. package/internal/headers.d.ts.map +1 -0
  95. package/internal/headers.js +79 -0
  96. package/internal/headers.js.map +1 -0
  97. package/internal/headers.mjs +74 -0
  98. package/internal/headers.mjs.map +1 -0
  99. package/internal/parse.d.mts +12 -0
  100. package/internal/parse.d.mts.map +1 -0
  101. package/internal/parse.d.ts +12 -0
  102. package/internal/parse.d.ts.map +1 -0
  103. package/internal/parse.js +40 -0
  104. package/internal/parse.js.map +1 -0
  105. package/internal/parse.mjs +37 -0
  106. package/internal/parse.mjs.map +1 -0
  107. package/internal/request-options.d.mts +75 -0
  108. package/internal/request-options.d.mts.map +1 -0
  109. package/internal/request-options.d.ts +75 -0
  110. package/internal/request-options.d.ts.map +1 -0
  111. package/internal/request-options.js +14 -0
  112. package/internal/request-options.js.map +1 -0
  113. package/internal/request-options.mjs +10 -0
  114. package/internal/request-options.mjs.map +1 -0
  115. package/internal/shim-types.d.mts +17 -0
  116. package/internal/shim-types.d.mts.map +1 -0
  117. package/internal/shim-types.d.ts +17 -0
  118. package/internal/shim-types.d.ts.map +1 -0
  119. package/internal/shim-types.js +4 -0
  120. package/internal/shim-types.js.map +1 -0
  121. package/internal/shim-types.mjs +3 -0
  122. package/internal/shim-types.mjs.map +1 -0
  123. package/internal/shims.d.mts +26 -0
  124. package/internal/shims.d.mts.map +1 -0
  125. package/internal/shims.d.ts +26 -0
  126. package/internal/shims.d.ts.map +1 -0
  127. package/internal/shims.js +92 -0
  128. package/internal/shims.js.map +1 -0
  129. package/internal/shims.mjs +85 -0
  130. package/internal/shims.mjs.map +1 -0
  131. package/internal/to-file.d.mts +45 -0
  132. package/internal/to-file.d.mts.map +1 -0
  133. package/internal/to-file.d.ts +45 -0
  134. package/internal/to-file.d.ts.map +1 -0
  135. package/internal/to-file.js +91 -0
  136. package/internal/to-file.js.map +1 -0
  137. package/internal/to-file.mjs +88 -0
  138. package/internal/to-file.mjs.map +1 -0
  139. package/internal/tslib.js +81 -0
  140. package/internal/tslib.mjs +17 -0
  141. package/internal/types.d.mts +69 -0
  142. package/internal/types.d.mts.map +1 -0
  143. package/internal/types.d.ts +69 -0
  144. package/internal/types.d.ts.map +1 -0
  145. package/internal/types.js +4 -0
  146. package/internal/types.js.map +1 -0
  147. package/internal/types.mjs +3 -0
  148. package/internal/types.mjs.map +1 -0
  149. package/internal/uploads.d.mts +42 -0
  150. package/internal/uploads.d.mts.map +1 -0
  151. package/internal/uploads.d.ts +42 -0
  152. package/internal/uploads.d.ts.map +1 -0
  153. package/internal/uploads.js +141 -0
  154. package/internal/uploads.js.map +1 -0
  155. package/internal/uploads.mjs +131 -0
  156. package/internal/uploads.mjs.map +1 -0
  157. package/internal/utils/base64.d.mts +3 -0
  158. package/internal/utils/base64.d.mts.map +1 -0
  159. package/internal/utils/base64.d.ts +3 -0
  160. package/internal/utils/base64.d.ts.map +1 -0
  161. package/internal/utils/base64.js +38 -0
  162. package/internal/utils/base64.js.map +1 -0
  163. package/internal/utils/base64.mjs +33 -0
  164. package/internal/utils/base64.mjs.map +1 -0
  165. package/internal/utils/bytes.d.mts +4 -0
  166. package/internal/utils/bytes.d.mts.map +1 -0
  167. package/internal/utils/bytes.d.ts +4 -0
  168. package/internal/utils/bytes.d.ts.map +1 -0
  169. package/internal/utils/bytes.js +31 -0
  170. package/internal/utils/bytes.js.map +1 -0
  171. package/internal/utils/bytes.mjs +26 -0
  172. package/internal/utils/bytes.mjs.map +1 -0
  173. package/internal/utils/env.d.mts +9 -0
  174. package/internal/utils/env.d.mts.map +1 -0
  175. package/internal/utils/env.d.ts +9 -0
  176. package/internal/utils/env.d.ts.map +1 -0
  177. package/internal/utils/env.js +22 -0
  178. package/internal/utils/env.js.map +1 -0
  179. package/internal/utils/env.mjs +18 -0
  180. package/internal/utils/env.mjs.map +1 -0
  181. package/internal/utils/log.d.mts +37 -0
  182. package/internal/utils/log.d.mts.map +1 -0
  183. package/internal/utils/log.d.ts +37 -0
  184. package/internal/utils/log.d.ts.map +1 -0
  185. package/internal/utils/log.js +87 -0
  186. package/internal/utils/log.js.map +1 -0
  187. package/internal/utils/log.mjs +81 -0
  188. package/internal/utils/log.mjs.map +1 -0
  189. package/internal/utils/path.d.mts +15 -0
  190. package/internal/utils/path.d.mts.map +1 -0
  191. package/internal/utils/path.d.ts +15 -0
  192. package/internal/utils/path.d.ts.map +1 -0
  193. package/internal/utils/path.js +79 -0
  194. package/internal/utils/path.js.map +1 -0
  195. package/internal/utils/path.mjs +74 -0
  196. package/internal/utils/path.mjs.map +1 -0
  197. package/internal/utils/query.d.mts +5 -0
  198. package/internal/utils/query.d.mts.map +1 -0
  199. package/internal/utils/query.d.ts +5 -0
  200. package/internal/utils/query.d.ts.map +1 -0
  201. package/internal/utils/query.js +23 -0
  202. package/internal/utils/query.js.map +1 -0
  203. package/internal/utils/query.mjs +20 -0
  204. package/internal/utils/query.mjs.map +1 -0
  205. package/internal/utils/sleep.d.mts +2 -0
  206. package/internal/utils/sleep.d.mts.map +1 -0
  207. package/internal/utils/sleep.d.ts +2 -0
  208. package/internal/utils/sleep.d.ts.map +1 -0
  209. package/internal/utils/sleep.js +7 -0
  210. package/internal/utils/sleep.js.map +1 -0
  211. package/internal/utils/sleep.mjs +3 -0
  212. package/internal/utils/sleep.mjs.map +1 -0
  213. package/internal/utils/uuid.d.mts +5 -0
  214. package/internal/utils/uuid.d.mts.map +1 -0
  215. package/internal/utils/uuid.d.ts +5 -0
  216. package/internal/utils/uuid.d.ts.map +1 -0
  217. package/internal/utils/uuid.js +19 -0
  218. package/internal/utils/uuid.js.map +1 -0
  219. package/internal/utils/uuid.mjs +15 -0
  220. package/internal/utils/uuid.mjs.map +1 -0
  221. package/internal/utils/values.d.mts +18 -0
  222. package/internal/utils/values.d.mts.map +1 -0
  223. package/internal/utils/values.d.ts +18 -0
  224. package/internal/utils/values.d.ts.map +1 -0
  225. package/internal/utils/values.js +112 -0
  226. package/internal/utils/values.js.map +1 -0
  227. package/internal/utils/values.mjs +94 -0
  228. package/internal/utils/values.mjs.map +1 -0
  229. package/internal/utils.d.mts +8 -0
  230. package/internal/utils.d.mts.map +1 -0
  231. package/internal/utils.d.ts +8 -0
  232. package/internal/utils.d.ts.map +1 -0
  233. package/internal/utils.js +12 -0
  234. package/internal/utils.js.map +1 -0
  235. package/internal/utils.mjs +9 -0
  236. package/internal/utils.mjs.map +1 -0
  237. package/package.json +143 -0
  238. package/resource.d.mts +3 -0
  239. package/resource.d.mts.map +1 -0
  240. package/resource.d.ts +3 -0
  241. package/resource.d.ts.map +1 -0
  242. package/resource.js +6 -0
  243. package/resource.js.map +1 -0
  244. package/resource.mjs +3 -0
  245. package/resource.mjs.map +1 -0
  246. package/resources/index.d.mts +2 -0
  247. package/resources/index.d.mts.map +1 -0
  248. package/resources/index.d.ts +2 -0
  249. package/resources/index.d.ts.map +1 -0
  250. package/resources/index.js +7 -0
  251. package/resources/index.js.map +1 -0
  252. package/resources/index.mjs +3 -0
  253. package/resources/index.mjs.map +1 -0
  254. package/resources/public/api/api.d.mts +10 -0
  255. package/resources/public/api/api.d.mts.map +1 -0
  256. package/resources/public/api/api.d.ts +10 -0
  257. package/resources/public/api/api.d.ts.map +1 -0
  258. package/resources/public/api/api.js +17 -0
  259. package/resources/public/api/api.js.map +1 -0
  260. package/resources/public/api/api.mjs +12 -0
  261. package/resources/public/api/api.mjs.map +1 -0
  262. package/resources/public/api/index.d.mts +3 -0
  263. package/resources/public/api/index.d.mts.map +1 -0
  264. package/resources/public/api/index.d.ts +3 -0
  265. package/resources/public/api/index.d.ts.map +1 -0
  266. package/resources/public/api/index.js +9 -0
  267. package/resources/public/api/index.js.map +1 -0
  268. package/resources/public/api/index.mjs +4 -0
  269. package/resources/public/api/index.mjs.map +1 -0
  270. package/resources/public/api/v1/heatmap/heatmap.d.mts +724 -0
  271. package/resources/public/api/v1/heatmap/heatmap.d.mts.map +1 -0
  272. package/resources/public/api/v1/heatmap/heatmap.d.ts +724 -0
  273. package/resources/public/api/v1/heatmap/heatmap.d.ts.map +1 -0
  274. package/resources/public/api/v1/heatmap/heatmap.js +163 -0
  275. package/resources/public/api/v1/heatmap/heatmap.js.map +1 -0
  276. package/resources/public/api/v1/heatmap/heatmap.mjs +158 -0
  277. package/resources/public/api/v1/heatmap/heatmap.mjs.map +1 -0
  278. package/resources/public/api/v1/heatmap/index.d.mts +3 -0
  279. package/resources/public/api/v1/heatmap/index.d.mts.map +1 -0
  280. package/resources/public/api/v1/heatmap/index.d.ts +3 -0
  281. package/resources/public/api/v1/heatmap/index.d.ts.map +1 -0
  282. package/resources/public/api/v1/heatmap/index.js +9 -0
  283. package/resources/public/api/v1/heatmap/index.js.map +1 -0
  284. package/resources/public/api/v1/heatmap/index.mjs +4 -0
  285. package/resources/public/api/v1/heatmap/index.mjs.map +1 -0
  286. package/resources/public/api/v1/heatmap/schedules.d.mts +775 -0
  287. package/resources/public/api/v1/heatmap/schedules.d.mts.map +1 -0
  288. package/resources/public/api/v1/heatmap/schedules.d.ts +775 -0
  289. package/resources/public/api/v1/heatmap/schedules.d.ts.map +1 -0
  290. package/resources/public/api/v1/heatmap/schedules.js +146 -0
  291. package/resources/public/api/v1/heatmap/schedules.js.map +1 -0
  292. package/resources/public/api/v1/heatmap/schedules.mjs +142 -0
  293. package/resources/public/api/v1/heatmap/schedules.mjs.map +1 -0
  294. package/resources/public/api/v1/heatmap.d.mts +2 -0
  295. package/resources/public/api/v1/heatmap.d.mts.map +1 -0
  296. package/resources/public/api/v1/heatmap.d.ts +2 -0
  297. package/resources/public/api/v1/heatmap.d.ts.map +1 -0
  298. package/resources/public/api/v1/heatmap.js +6 -0
  299. package/resources/public/api/v1/heatmap.js.map +1 -0
  300. package/resources/public/api/v1/heatmap.mjs +3 -0
  301. package/resources/public/api/v1/heatmap.mjs.map +1 -0
  302. package/resources/public/api/v1/index.d.mts +3 -0
  303. package/resources/public/api/v1/index.d.mts.map +1 -0
  304. package/resources/public/api/v1/index.d.ts +3 -0
  305. package/resources/public/api/v1/index.d.ts.map +1 -0
  306. package/resources/public/api/v1/index.js +9 -0
  307. package/resources/public/api/v1/index.js.map +1 -0
  308. package/resources/public/api/v1/index.mjs +4 -0
  309. package/resources/public/api/v1/index.mjs.map +1 -0
  310. package/resources/public/api/v1/v1.d.mts +10 -0
  311. package/resources/public/api/v1/v1.d.mts.map +1 -0
  312. package/resources/public/api/v1/v1.d.ts +10 -0
  313. package/resources/public/api/v1/v1.d.ts.map +1 -0
  314. package/resources/public/api/v1/v1.js +17 -0
  315. package/resources/public/api/v1/v1.js.map +1 -0
  316. package/resources/public/api/v1/v1.mjs +12 -0
  317. package/resources/public/api/v1/v1.mjs.map +1 -0
  318. package/resources/public/api/v1.d.mts +2 -0
  319. package/resources/public/api/v1.d.mts.map +1 -0
  320. package/resources/public/api/v1.d.ts +2 -0
  321. package/resources/public/api/v1.d.ts.map +1 -0
  322. package/resources/public/api/v1.js +6 -0
  323. package/resources/public/api/v1.js.map +1 -0
  324. package/resources/public/api/v1.mjs +3 -0
  325. package/resources/public/api/v1.mjs.map +1 -0
  326. package/resources/public/api.d.mts +2 -0
  327. package/resources/public/api.d.mts.map +1 -0
  328. package/resources/public/api.d.ts +2 -0
  329. package/resources/public/api.d.ts.map +1 -0
  330. package/resources/public/api.js +6 -0
  331. package/resources/public/api.js.map +1 -0
  332. package/resources/public/api.mjs +3 -0
  333. package/resources/public/api.mjs.map +1 -0
  334. package/resources/public/index.d.mts +3 -0
  335. package/resources/public/index.d.mts.map +1 -0
  336. package/resources/public/index.d.ts +3 -0
  337. package/resources/public/index.d.ts.map +1 -0
  338. package/resources/public/index.js +9 -0
  339. package/resources/public/index.js.map +1 -0
  340. package/resources/public/index.mjs +4 -0
  341. package/resources/public/index.mjs.map +1 -0
  342. package/resources/public/public.d.mts +10 -0
  343. package/resources/public/public.d.mts.map +1 -0
  344. package/resources/public/public.d.ts +10 -0
  345. package/resources/public/public.d.ts.map +1 -0
  346. package/resources/public/public.js +17 -0
  347. package/resources/public/public.js.map +1 -0
  348. package/resources/public/public.mjs +12 -0
  349. package/resources/public/public.mjs.map +1 -0
  350. package/resources/public.d.mts +2 -0
  351. package/resources/public.d.mts.map +1 -0
  352. package/resources/public.d.ts +2 -0
  353. package/resources/public.d.ts.map +1 -0
  354. package/resources/public.js +6 -0
  355. package/resources/public.js.map +1 -0
  356. package/resources/public.mjs +3 -0
  357. package/resources/public.mjs.map +1 -0
  358. package/resources.d.mts +2 -0
  359. package/resources.d.mts.map +1 -0
  360. package/resources.d.ts +2 -0
  361. package/resources.d.ts.map +1 -0
  362. package/resources.js +5 -0
  363. package/resources.js.map +1 -0
  364. package/resources.mjs +2 -0
  365. package/resources.mjs.map +1 -0
  366. package/src/api-promise.ts +2 -0
  367. package/src/client.ts +770 -0
  368. package/src/core/README.md +3 -0
  369. package/src/core/api-promise.ts +92 -0
  370. package/src/core/error.ts +130 -0
  371. package/src/core/resource.ts +11 -0
  372. package/src/core/uploads.ts +2 -0
  373. package/src/error.ts +2 -0
  374. package/src/index.ts +22 -0
  375. package/src/internal/README.md +3 -0
  376. package/src/internal/builtin-types.ts +93 -0
  377. package/src/internal/detect-platform.ts +196 -0
  378. package/src/internal/errors.ts +33 -0
  379. package/src/internal/headers.ts +97 -0
  380. package/src/internal/parse.ts +56 -0
  381. package/src/internal/request-options.ts +91 -0
  382. package/src/internal/shim-types.ts +26 -0
  383. package/src/internal/shims.ts +107 -0
  384. package/src/internal/to-file.ts +154 -0
  385. package/src/internal/types.ts +93 -0
  386. package/src/internal/uploads.ts +187 -0
  387. package/src/internal/utils/base64.ts +40 -0
  388. package/src/internal/utils/bytes.ts +32 -0
  389. package/src/internal/utils/env.ts +18 -0
  390. package/src/internal/utils/log.ts +128 -0
  391. package/src/internal/utils/path.ts +88 -0
  392. package/src/internal/utils/query.ts +23 -0
  393. package/src/internal/utils/sleep.ts +3 -0
  394. package/src/internal/utils/uuid.ts +17 -0
  395. package/src/internal/utils/values.ts +105 -0
  396. package/src/internal/utils.ts +9 -0
  397. package/src/lib/.keep +4 -0
  398. package/src/resource.ts +2 -0
  399. package/src/resources/index.ts +3 -0
  400. package/src/resources/public/api/api.ts +15 -0
  401. package/src/resources/public/api/index.ts +4 -0
  402. package/src/resources/public/api/v1/heatmap/heatmap.ts +1165 -0
  403. package/src/resources/public/api/v1/heatmap/index.ts +29 -0
  404. package/src/resources/public/api/v1/heatmap/schedules.ts +1189 -0
  405. package/src/resources/public/api/v1/heatmap.ts +3 -0
  406. package/src/resources/public/api/v1/index.ts +18 -0
  407. package/src/resources/public/api/v1/v1.ts +43 -0
  408. package/src/resources/public/api/v1.ts +3 -0
  409. package/src/resources/public/api.ts +3 -0
  410. package/src/resources/public/index.ts +4 -0
  411. package/src/resources/public/public.ts +15 -0
  412. package/src/resources/public.ts +3 -0
  413. package/src/resources.ts +1 -0
  414. package/src/tsconfig.json +11 -0
  415. package/src/uploads.ts +2 -0
  416. package/src/version.ts +1 -0
  417. package/uploads.d.mts +3 -0
  418. package/uploads.d.mts.map +1 -0
  419. package/uploads.d.ts +3 -0
  420. package/uploads.d.ts.map +1 -0
  421. package/uploads.js +6 -0
  422. package/uploads.js.map +1 -0
  423. package/uploads.mjs +3 -0
  424. package/uploads.mjs.map +1 -0
  425. package/version.d.mts +2 -0
  426. package/version.d.mts.map +1 -0
  427. package/version.d.ts +2 -0
  428. package/version.d.ts.map +1 -0
  429. package/version.js +5 -0
  430. package/version.js.map +1 -0
  431. package/version.mjs +2 -0
  432. package/version.mjs.map +1 -0
@@ -0,0 +1,1165 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../../../../core/resource';
4
+ import * as SchedulesAPI from './schedules';
5
+ import {
6
+ ScheduleCreateScheduleParams,
7
+ ScheduleCreateScheduleResponse,
8
+ ScheduleListSchedulesParams,
9
+ ScheduleListSchedulesResponse,
10
+ SchedulePauseScheduleResponse,
11
+ ScheduleResumeScheduleResponse,
12
+ ScheduleRetrieveScheduleResponse,
13
+ ScheduleUpdateScheduleParams,
14
+ ScheduleUpdateScheduleResponse,
15
+ Schedules,
16
+ } from './schedules';
17
+ import { APIPromise } from '../../../../../core/api-promise';
18
+ import { RequestOptions } from '../../../../../internal/request-options';
19
+ import { path } from '../../../../../internal/utils/path';
20
+
21
+ export class Heatmap extends APIResource {
22
+ schedules: SchedulesAPI.Schedules = new SchedulesAPI.Schedules(this._client);
23
+
24
+ /**
25
+ * Returns the computed grid point coordinates for a given configuration without
26
+ * creating a heatmap. Use this to preview a grid layout or to obtain the `points`
27
+ * array that can be passed to the Create Heatmap or Create Schedule endpoints.
28
+ *
29
+ * `grid_radius` is the spacing between points and is **always in meters** — e.g.
30
+ * `1000` = 1 km, `1609` ≈ 1 mile. When `polygon` is supplied the grid is clipped
31
+ * to that shape and only points inside it are returned.
32
+ *
33
+ * @example
34
+ * ```ts
35
+ * const response =
36
+ * await client.public.api.v1.heatmap.generateGridPoints({
37
+ * grid_radius: 3495,
38
+ * grid_size: 3,
39
+ * lat: 44.670381143996,
40
+ * lng: -88.122418774951,
41
+ * });
42
+ * ```
43
+ */
44
+ generateGridPoints(
45
+ body: HeatmapGenerateGridPointsParams,
46
+ options?: RequestOptions,
47
+ ): APIPromise<HeatmapGenerateGridPointsResponse> {
48
+ return this._client.post('/public/api/v1/heatmap/grid-points', { body, ...options });
49
+ }
50
+
51
+ /**
52
+ * Returns details for a single grid point within a heatmap, including its
53
+ * coordinates, rank, and surrounding place rankings.
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * const response =
58
+ * await client.public.api.v1.heatmap.retrieveHeatmapPoint(
59
+ * 1,
60
+ * { heatmap_id: 1 },
61
+ * );
62
+ * ```
63
+ */
64
+ retrieveHeatmapPoint(
65
+ pointID: number,
66
+ params: HeatmapRetrieveHeatmapPointParams,
67
+ options?: RequestOptions,
68
+ ): APIPromise<HeatmapRetrieveHeatmapPointResponse> {
69
+ const { heatmap_id } = params;
70
+ return this._client.get(path`/public/api/v1/heatmaps/${heatmap_id}/points/${pointID}`, options);
71
+ }
72
+
73
+ /**
74
+ * Returns a paginated list of heatmaps for the authenticated account. Supports
75
+ * filtering, sorting, searching, and pagination.
76
+ *
77
+ * **Pagination** — all list responses include pagination fields at the root level
78
+ * alongside `data`:
79
+ *
80
+ * - `total` total matching records; `last_page` total pages; `per_page` results
81
+ * per page (default 25)
82
+ * - `next_page_url` URL of the next page (`null` on the last page)
83
+ * - `links` array of page link objects (`url`, `label`, `active`)
84
+ *
85
+ * **Date filters** — `filter[created_at]` accepts an object with `start_date`
86
+ * and/or `end_date` (YYYY-MM-DD):
87
+ *
88
+ * ```
89
+ * filter[created_at][start_date]=2026-01-01
90
+ * filter[created_at][end_date]=2026-04-30
91
+ * ```
92
+ *
93
+ * Alternatively, pass a named range alias via `filter[created_at][date]`: `today`,
94
+ * `yesterday`, `this_week`, `last_week`, `last_7_days`, `last_30_days`,
95
+ * `last_90_days`, `this_month`, `last_month`, `this_quarter`, `last_quarter`,
96
+ * `this_year`, `year_to_date`, `last_year`, `all_time`
97
+ *
98
+ * @example
99
+ * ```ts
100
+ * const response =
101
+ * await client.public.api.v1.heatmap.listHeatmaps();
102
+ * ```
103
+ */
104
+ listHeatmaps(
105
+ query: HeatmapListHeatmapsParams | null | undefined = {},
106
+ options?: RequestOptions,
107
+ ): APIPromise<HeatmapListHeatmapsResponse> {
108
+ return this._client.get('/public/api/v1/heatmaps', { query, ...options });
109
+ }
110
+
111
+ /**
112
+ * Creates one or more heatmaps. Each combination of keyword × search_type
113
+ * generates a separate heatmap.
114
+ *
115
+ * @example
116
+ * ```ts
117
+ * const response =
118
+ * await client.public.api.v1.heatmap.createHeatmap({
119
+ * distanceType: 'm',
120
+ * grid_radius: 3495,
121
+ * grid_size: 3,
122
+ * keyword: ['roofing'],
123
+ * lat: 44.670381143996,
124
+ * lng: -88.122418774951,
125
+ * place_id: 'ChIJFzfDtmDzAogRn0zn9LJaP_A',
126
+ * search_type: ['google_maps'],
127
+ * });
128
+ * ```
129
+ */
130
+ createHeatmap(
131
+ body: HeatmapCreateHeatmapParams,
132
+ options?: RequestOptions,
133
+ ): APIPromise<HeatmapCreateHeatmapResponse> {
134
+ return this._client.post('/public/api/v1/heatmaps', { body, ...options });
135
+ }
136
+
137
+ /**
138
+ * Returns a paginated list of Google Business Profile locations for the
139
+ * authenticated account. Supports filtering, sorting, searching, and pagination.
140
+ *
141
+ * **Pagination** — all list responses include pagination fields at the root level
142
+ * alongside `data`:
143
+ *
144
+ * - `total` total matching records; `last_page` total pages; `per_page` results
145
+ * per page (default 25)
146
+ * - `next_page_url` URL of the next page (`null` on the last page)
147
+ * - `links` array of page link objects (`url`, `label`, `active`)
148
+ *
149
+ * @example
150
+ * ```ts
151
+ * const response =
152
+ * await client.public.api.v1.heatmap.listLocations();
153
+ * ```
154
+ */
155
+ listLocations(
156
+ query: HeatmapListLocationsParams | null | undefined = {},
157
+ options?: RequestOptions,
158
+ ): APIPromise<HeatmapListLocationsResponse> {
159
+ return this._client.get('/public/api/v1/heatmaps/locations', { query, ...options });
160
+ }
161
+
162
+ /**
163
+ * Returns full details of a single heatmap including grid points, place info, and
164
+ * ranking statistics.
165
+ *
166
+ * @example
167
+ * ```ts
168
+ * const response =
169
+ * await client.public.api.v1.heatmap.retrieveHeatmap(1482);
170
+ * ```
171
+ */
172
+ retrieveHeatmap(heatmap: number, options?: RequestOptions): APIPromise<HeatmapRetrieveHeatmapResponse> {
173
+ return this._client.get(path`/public/api/v1/heatmaps/${heatmap}`, options);
174
+ }
175
+
176
+ /**
177
+ * Returns aggregated ranking statistics for all competitor businesses found across
178
+ * the grid points of the specified heatmap.
179
+ *
180
+ * @example
181
+ * ```ts
182
+ * const response =
183
+ * await client.public.api.v1.heatmap.retrieveHeatmapCompetitors(
184
+ * 1482,
185
+ * );
186
+ * ```
187
+ */
188
+ retrieveHeatmapCompetitors(
189
+ heatmap: number,
190
+ options?: RequestOptions,
191
+ ): APIPromise<HeatmapRetrieveHeatmapCompetitorsResponse> {
192
+ return this._client.get(path`/public/api/v1/heatmaps/${heatmap}/competitors`, options);
193
+ }
194
+ }
195
+
196
+ export interface HeatmapCreateHeatmapResponse {
197
+ id?: number;
198
+
199
+ area?: string | null;
200
+
201
+ ave_review_rating?: string | null;
202
+
203
+ average?: string | null;
204
+
205
+ average_position?: string | null;
206
+
207
+ business_name?: string;
208
+
209
+ business_place_id?: string;
210
+
211
+ created_at?: string;
212
+
213
+ grid_center_lat?: number;
214
+
215
+ grid_center_lng?: number;
216
+
217
+ grid_distance_measure?: string;
218
+
219
+ grid_point_distance?: string;
220
+
221
+ grid_point_distance_row?: number;
222
+
223
+ grid_size?: number;
224
+
225
+ keyword?: string;
226
+
227
+ keyword_difficulty?: string | null;
228
+
229
+ keyword_search_intents?: Array<unknown>;
230
+
231
+ lead_source_id?: string | null;
232
+
233
+ location?: string | null;
234
+
235
+ location_id?: string | null;
236
+
237
+ market_share?: string | null;
238
+
239
+ market_share_position?: string | null;
240
+
241
+ place?: string | null;
242
+
243
+ place_id?: string;
244
+
245
+ points?: Array<unknown>;
246
+
247
+ previous_ranking?: string | null;
248
+
249
+ ranking_change?: string | null;
250
+
251
+ ranking_change_percentage?: string | null;
252
+
253
+ review_count?: string | null;
254
+
255
+ search_type?: string;
256
+
257
+ search_volume?: string | null;
258
+
259
+ status?: string;
260
+
261
+ tags?: Array<unknown>;
262
+
263
+ top_3_percentage?: string | null;
264
+
265
+ top_3_points?: number;
266
+
267
+ top_3_position?: string | null;
268
+
269
+ top_n?: string | null;
270
+
271
+ total?: number;
272
+
273
+ total_points?: number;
274
+
275
+ updated_at?: string;
276
+
277
+ zoom_level?: string | null;
278
+ }
279
+
280
+ export interface HeatmapGenerateGridPointsResponse {
281
+ count?: number;
282
+
283
+ points?: Array<HeatmapGenerateGridPointsResponse.Point>;
284
+ }
285
+
286
+ export namespace HeatmapGenerateGridPointsResponse {
287
+ export interface Point {
288
+ lat?: number;
289
+
290
+ lng?: number;
291
+ }
292
+ }
293
+
294
+ export interface HeatmapListHeatmapsResponse {
295
+ current_page?: number;
296
+
297
+ data?: Array<HeatmapListHeatmapsResponse.Data>;
298
+
299
+ first_page_url?: string;
300
+
301
+ from?: number;
302
+
303
+ last_page?: number;
304
+
305
+ last_page_url?: string;
306
+
307
+ links?: Array<unknown>;
308
+
309
+ next_page_url?: string;
310
+
311
+ path?: string;
312
+
313
+ per_page?: number;
314
+
315
+ prev_page_url?: string | null;
316
+
317
+ to?: number;
318
+
319
+ total?: number;
320
+ }
321
+
322
+ export namespace HeatmapListHeatmapsResponse {
323
+ export interface Data {
324
+ id?: number;
325
+
326
+ area?: string;
327
+
328
+ ave_review_rating?: string | null;
329
+
330
+ average?: string | null;
331
+
332
+ average_position?: string | null;
333
+
334
+ business_name?: string;
335
+
336
+ business_place_id?: string;
337
+
338
+ created_at?: string;
339
+
340
+ grid_center_lat?: number;
341
+
342
+ grid_center_lng?: number;
343
+
344
+ grid_distance_measure?: string;
345
+
346
+ grid_point_distance?: string;
347
+
348
+ grid_point_distance_row?: number;
349
+
350
+ grid_size?: number;
351
+
352
+ keyword?: string;
353
+
354
+ lead_source_id?: string | null;
355
+
356
+ location?: string | null;
357
+
358
+ location_id?: string | null;
359
+
360
+ market_share?: string | null;
361
+
362
+ market_share_position?: string | null;
363
+
364
+ place?: Data.Place;
365
+
366
+ place_id?: number;
367
+
368
+ previous_ranking?: string | null;
369
+
370
+ ranking_change?: string | null;
371
+
372
+ ranking_change_percentage?: string | null;
373
+
374
+ review_count?: string | null;
375
+
376
+ search_type?: string;
377
+
378
+ status?: string;
379
+
380
+ status_code?: number;
381
+
382
+ top_3_percentage?: string | null;
383
+
384
+ top_3_points?: string | null;
385
+
386
+ top_3_position?: string | null;
387
+
388
+ top_n?: string | null;
389
+
390
+ total?: string | null;
391
+
392
+ total_points?: string | null;
393
+
394
+ updated_at?: string;
395
+
396
+ zoom_level?: string;
397
+ }
398
+
399
+ export namespace Data {
400
+ export interface Place {
401
+ id?: number;
402
+
403
+ address?: string;
404
+
405
+ ave_review_rating?: number;
406
+
407
+ feature_id?: string | null;
408
+
409
+ google_place_id?: string;
410
+
411
+ google_place_serial?: string;
412
+
413
+ latitude?: string;
414
+
415
+ longitude?: string;
416
+
417
+ main_category?: string;
418
+
419
+ map_url?: string;
420
+
421
+ name?: string;
422
+
423
+ phone?: string;
424
+
425
+ place_url?: string;
426
+
427
+ ranking?: string | null;
428
+
429
+ related_categories?: Array<string>;
430
+
431
+ review_count?: number;
432
+
433
+ thumbnail_url?: string;
434
+
435
+ website_url?: string;
436
+ }
437
+ }
438
+ }
439
+
440
+ export interface HeatmapListLocationsResponse {
441
+ current_page?: number;
442
+
443
+ data?: Array<HeatmapListLocationsResponse.Data>;
444
+
445
+ first_page_url?: string;
446
+
447
+ from?: number;
448
+
449
+ last_page?: number;
450
+
451
+ last_page_url?: string;
452
+
453
+ links?: Array<unknown>;
454
+
455
+ next_page_url?: string;
456
+
457
+ path?: string;
458
+
459
+ per_page?: number;
460
+
461
+ prev_page_url?: string | null;
462
+
463
+ to?: number;
464
+
465
+ total?: number;
466
+ }
467
+
468
+ export namespace HeatmapListLocationsResponse {
469
+ export interface Data {
470
+ id?: number;
471
+
472
+ address?: string;
473
+
474
+ ave_review_rating?: number;
475
+
476
+ citation?: string | null;
477
+
478
+ city?: string;
479
+
480
+ completion_percentage?: number;
481
+
482
+ country?: string;
483
+
484
+ created_at?: string;
485
+
486
+ currency?: string;
487
+
488
+ deleted_at?: string | null;
489
+
490
+ description?: string;
491
+
492
+ email?: string | null;
493
+
494
+ image?: string;
495
+
496
+ is_authorized?: string | null;
497
+
498
+ is_citation_subscribed?: boolean;
499
+
500
+ is_connected?: number;
501
+
502
+ is_gmb_activate?: number;
503
+
504
+ last_review_date?: string;
505
+
506
+ latitude?: number;
507
+
508
+ location_id?: string;
509
+
510
+ location_image?: string;
511
+
512
+ location_name?: string;
513
+
514
+ location_name_initials?: string;
515
+
516
+ location_state?: string;
517
+
518
+ lock_changes?: number;
519
+
520
+ longitude?: number;
521
+
522
+ map_url?: string;
523
+
524
+ media_count?: number;
525
+
526
+ name?: string;
527
+
528
+ place_id?: string;
529
+
530
+ primary_category?: string;
531
+
532
+ primary_phone?: string;
533
+
534
+ review_count?: number;
535
+
536
+ review_link?: string;
537
+
538
+ review_url?: string;
539
+
540
+ state?: string;
541
+
542
+ status?: string;
543
+
544
+ subscription_id?: number;
545
+
546
+ subscription_item_id?: number;
547
+
548
+ unreplied_review_count?: number;
549
+
550
+ updated_at?: string;
551
+
552
+ website_url?: string;
553
+
554
+ zip?: string;
555
+
556
+ zip_code?: string;
557
+ }
558
+ }
559
+
560
+ export interface HeatmapRetrieveHeatmapResponse {
561
+ id?: number;
562
+
563
+ area?: string;
564
+
565
+ ave_review_rating?: number;
566
+
567
+ average?: string;
568
+
569
+ average_position?: number;
570
+
571
+ business_name?: string;
572
+
573
+ business_place_id?: string;
574
+
575
+ created_at?: string;
576
+
577
+ grid_center_lat?: number;
578
+
579
+ grid_center_lng?: number;
580
+
581
+ grid_distance_measure?: string;
582
+
583
+ grid_point_distance?: string;
584
+
585
+ grid_point_distance_row?: number;
586
+
587
+ grid_size?: number;
588
+
589
+ keyword?: string;
590
+
591
+ keyword_seo_data?: HeatmapRetrieveHeatmapResponse.KeywordSeoData;
592
+
593
+ lead_source_id?: string | null;
594
+
595
+ location?: string | null;
596
+
597
+ location_id?: string | null;
598
+
599
+ market_share?: string;
600
+
601
+ market_share_position?: number;
602
+
603
+ place?: HeatmapRetrieveHeatmapResponse.Place;
604
+
605
+ place_id?: number;
606
+
607
+ points?: Array<HeatmapRetrieveHeatmapResponse.Point>;
608
+
609
+ previous_ranking?: string | null;
610
+
611
+ ranking_change?: string | null;
612
+
613
+ ranking_change_percentage?: string | null;
614
+
615
+ review_count?: number;
616
+
617
+ search_type?: string;
618
+
619
+ status?: string;
620
+
621
+ status_code?: number;
622
+
623
+ tags?: Array<unknown>;
624
+
625
+ top_3_percentage?: number;
626
+
627
+ top_3_points?: number;
628
+
629
+ top_3_position?: number;
630
+
631
+ top_n?: number;
632
+
633
+ total?: number;
634
+
635
+ total_points?: number;
636
+
637
+ updated_at?: string;
638
+
639
+ zoom_level?: string;
640
+ }
641
+
642
+ export namespace HeatmapRetrieveHeatmapResponse {
643
+ export interface KeywordSeoData {
644
+ id?: number;
645
+
646
+ account_id?: number;
647
+
648
+ created_at?: string;
649
+
650
+ heatmap_keyword_list_id?: number;
651
+
652
+ keyword?: string;
653
+
654
+ keyword_difficulty?: KeywordSeoData.KeywordDifficulty;
655
+
656
+ keyword_search_intents?: Array<KeywordSeoData.KeywordSearchIntent>;
657
+
658
+ search_volume?: KeywordSeoData.SearchVolume;
659
+
660
+ updated_at?: string;
661
+ }
662
+
663
+ export namespace KeywordSeoData {
664
+ export interface KeywordDifficulty {
665
+ id?: number;
666
+
667
+ created_at?: string;
668
+
669
+ difficulty?: number;
670
+
671
+ keyword?: string;
672
+
673
+ language_code?: string;
674
+
675
+ location_code?: string;
676
+
677
+ updated_at?: string;
678
+ }
679
+
680
+ export interface KeywordSearchIntent {
681
+ id?: number;
682
+
683
+ created_at?: string;
684
+
685
+ keyword?: string;
686
+
687
+ label?: string;
688
+
689
+ language_code?: string;
690
+
691
+ probability?: number;
692
+
693
+ updated_at?: string;
694
+ }
695
+
696
+ export interface SearchVolume {
697
+ id?: number;
698
+
699
+ competition?: string;
700
+
701
+ competition_index?: number;
702
+
703
+ cpc?: string;
704
+
705
+ created_at?: string;
706
+
707
+ high_top_of_page_bid?: string;
708
+
709
+ keyword?: string;
710
+
711
+ language_code?: string;
712
+
713
+ location_code?: string;
714
+
715
+ low_top_of_page_bid?: string;
716
+
717
+ search_volume?: number;
718
+
719
+ updated_at?: string;
720
+ }
721
+ }
722
+
723
+ export interface Place {
724
+ id?: number;
725
+
726
+ address?: string;
727
+
728
+ ave_review_rating?: number;
729
+
730
+ feature_id?: string;
731
+
732
+ google_place_id?: string;
733
+
734
+ google_place_serial?: string;
735
+
736
+ latitude?: string;
737
+
738
+ longitude?: string;
739
+
740
+ main_category?: string;
741
+
742
+ map_url?: string;
743
+
744
+ name?: string;
745
+
746
+ phone?: string;
747
+
748
+ place_url?: string;
749
+
750
+ ranking?: string | null;
751
+
752
+ related_categories?: Array<string>;
753
+
754
+ review_count?: number;
755
+
756
+ thumbnail_url?: string;
757
+
758
+ website_url?: string;
759
+ }
760
+
761
+ export interface Point {
762
+ id?: number;
763
+
764
+ index?: number;
765
+
766
+ lat?: string;
767
+
768
+ lng?: string;
769
+
770
+ rank?: number;
771
+ }
772
+ }
773
+
774
+ export type HeatmapRetrieveHeatmapCompetitorsResponse =
775
+ Array<HeatmapRetrieveHeatmapCompetitorsResponse.HeatmapRetrieveHeatmapCompetitorsResponseItem>;
776
+
777
+ export namespace HeatmapRetrieveHeatmapCompetitorsResponse {
778
+ export interface HeatmapRetrieveHeatmapCompetitorsResponseItem {
779
+ id?: number;
780
+
781
+ average?: number;
782
+
783
+ average_position?: number;
784
+
785
+ market_share?: string;
786
+
787
+ market_share_position?: number;
788
+
789
+ north_east?: number;
790
+
791
+ north_west?: number;
792
+
793
+ photos_count?: number;
794
+
795
+ place?: HeatmapRetrieveHeatmapCompetitorsResponseItem.Place;
796
+
797
+ south_east?: number;
798
+
799
+ south_west?: number;
800
+
801
+ top_20_points?: number;
802
+
803
+ top_3_percentage?: string | null;
804
+
805
+ top_3_points?: number;
806
+
807
+ top_3_position?: number;
808
+
809
+ total_points?: number;
810
+ }
811
+
812
+ export namespace HeatmapRetrieveHeatmapCompetitorsResponseItem {
813
+ export interface Place {
814
+ id?: number;
815
+
816
+ address?: string;
817
+
818
+ ave_review_rating?: number;
819
+
820
+ feature_id?: string;
821
+
822
+ google_place_id?: string;
823
+
824
+ google_place_serial?: string;
825
+
826
+ latitude?: string;
827
+
828
+ longitude?: string;
829
+
830
+ main_category?: string;
831
+
832
+ map_url?: string;
833
+
834
+ name?: string;
835
+
836
+ phone?: string;
837
+
838
+ place_url?: string;
839
+
840
+ ranking?: string | null;
841
+
842
+ related_categories?: Array<string>;
843
+
844
+ review_count?: number;
845
+
846
+ thumbnail_url?: string;
847
+
848
+ website_url?: string;
849
+ }
850
+ }
851
+ }
852
+
853
+ export interface HeatmapRetrieveHeatmapPointResponse {
854
+ id?: number;
855
+
856
+ index?: number;
857
+
858
+ lat?: number;
859
+
860
+ lng?: number;
861
+
862
+ places?: Array<HeatmapRetrieveHeatmapPointResponse.Place>;
863
+
864
+ rank?: number;
865
+ }
866
+
867
+ export namespace HeatmapRetrieveHeatmapPointResponse {
868
+ export interface Place {
869
+ id?: number;
870
+
871
+ address?: string;
872
+
873
+ ave_review_rating?: number;
874
+
875
+ google_place_id?: string;
876
+
877
+ name?: string;
878
+
879
+ ranking?: number;
880
+
881
+ review_count?: number;
882
+ }
883
+ }
884
+
885
+ export interface HeatmapGenerateGridPointsParams {
886
+ /**
887
+ * Spacing between grid points, **in meters** (e.g. `1000` = 1 km, `1609` ≈ 1
888
+ * mile).
889
+ */
890
+ grid_radius: number;
891
+
892
+ /**
893
+ * Number of grid points per side (e.g. 3 = 3×3 grid). Maximum: `13` (produces a
894
+ * 13×13 = 169-point grid).
895
+ */
896
+ grid_size: number;
897
+
898
+ /**
899
+ * Latitude of the grid center.
900
+ */
901
+ lat: number;
902
+
903
+ /**
904
+ * Longitude of the grid center.
905
+ */
906
+ lng: number;
907
+
908
+ /**
909
+ * optional Custom polygon to clip the grid. Points outside the polygon are
910
+ * excluded.
911
+ */
912
+ polygon?: { [key: string]: unknown } | null;
913
+ }
914
+
915
+ export interface HeatmapRetrieveHeatmapPointParams {
916
+ /**
917
+ * The ID of the heatmap.
918
+ */
919
+ heatmap_id: number;
920
+ }
921
+
922
+ export interface HeatmapListHeatmapsParams {
923
+ /**
924
+ * Filter by business name (partial match).
925
+ */
926
+ 'filter[business_name]'?: string;
927
+
928
+ /**
929
+ * Filter by lead source / company ID.
930
+ */
931
+ 'filter[company_id]'?: number;
932
+
933
+ /**
934
+ * Filter by a named date alias instead of a range. Accepted: `today`, `yesterday`,
935
+ * `this_week`, `last_week`, `last_7_days`, `last_30_days`, `last_90_days`,
936
+ * `this_month`, `last_month`, `this_quarter`, `last_quarter`, `this_year`,
937
+ * `year_to_date`, `last_year`, `all_time`.
938
+ */
939
+ 'filter[created_at][date]'?: string;
940
+
941
+ /**
942
+ * Filter by creation date — range end (YYYY-MM-DD).
943
+ */
944
+ 'filter[created_at][end_date]'?: string;
945
+
946
+ /**
947
+ * Filter by creation date — range start (YYYY-MM-DD).
948
+ */
949
+ 'filter[created_at][start_date]'?: string;
950
+
951
+ /**
952
+ * Filter by Google Place ID (exact).
953
+ */
954
+ 'filter[google_place_id]'?: string;
955
+
956
+ /**
957
+ * Filter by keyword text (partial match).
958
+ */
959
+ 'filter[keyword]'?: string;
960
+
961
+ /**
962
+ * Filter by location ID.
963
+ */
964
+ 'filter[location_id]'?: number;
965
+
966
+ /**
967
+ * Filter by search type. Accepted: `google_maps`, `local_pack`.
968
+ */
969
+ 'filter[search_type]'?: string;
970
+
971
+ /**
972
+ * Filter by heatmap status. Accepted slugs: `queue`, `in_progress`, `completed`,
973
+ * `incomplete`, `failed`. Numeric values (0–4) are also accepted.
974
+ */
975
+ 'filter[status]'?: string;
976
+
977
+ /**
978
+ * Filter by tag name (exact match).
979
+ */
980
+ 'filter[tag]'?: string;
981
+
982
+ /**
983
+ * Page number.
984
+ */
985
+ page?: number;
986
+
987
+ /**
988
+ * Number of results per page (default 25).
989
+ */
990
+ per_page?: number;
991
+
992
+ /**
993
+ * Full-text search across keyword and business name.
994
+ */
995
+ search?: string;
996
+
997
+ /**
998
+ * Sort field. Prefix with `-` for descending. Accepted: `created_at`, `average`,
999
+ * `top_3_points`, `top_3_position`, `top_3_percentage`, `review_count`,
1000
+ * `review_rating`, `average_position`, `zoom_level`, `grid_size`, `market_share`,
1001
+ * `keyword`, `business_name`, `reviews`.
1002
+ */
1003
+ sort?: string;
1004
+ }
1005
+
1006
+ export interface HeatmapCreateHeatmapParams {
1007
+ /**
1008
+ * Unit for the radius. Accepted: `km`, `mi`, `m`.
1009
+ */
1010
+ distanceType: string;
1011
+
1012
+ /**
1013
+ * Radius between grid points in the chosen unit. Used to auto-generate points when
1014
+ * `points` is not provided.
1015
+ */
1016
+ grid_radius: number;
1017
+
1018
+ /**
1019
+ * Number of grid points per side (e.g. 3 = 3×3). Maximum: `13` (13×13 = 169
1020
+ * points). Used to auto-generate points when `points` is not provided.
1021
+ */
1022
+ grid_size: number | null;
1023
+
1024
+ /**
1025
+ * Keywords to track.
1026
+ */
1027
+ keyword: Array<string>;
1028
+
1029
+ /**
1030
+ * Latitude of the grid center.
1031
+ */
1032
+ lat: number;
1033
+
1034
+ /**
1035
+ * Longitude of the grid center.
1036
+ */
1037
+ lng: number;
1038
+
1039
+ /**
1040
+ * Google Place ID of the business. you can get the place_id by calling
1041
+ * heatmaps/locations endpoint in case you don't have it.
1042
+ */
1043
+ place_id: string;
1044
+
1045
+ /**
1046
+ * Search type(s) to run per keyword. Accepted: `google_maps`, `local_pack`.
1047
+ */
1048
+ search_type: Array<string>;
1049
+
1050
+ /**
1051
+ * optional Pre-computed grid point coordinates (max 169). If provided (must not be
1052
+ * empty), `grid_radius` and `grid_size` are ignored. If omitted, points are
1053
+ * auto-generated from `grid_size` and `grid_radius`. Use the
1054
+ * [Generate grid points](#tag/Heatmap-Points/POST/public/api/v1/heatmap/grid-points)
1055
+ * endpoint to compute coordinates from a grid config and pass them here.
1056
+ */
1057
+ points?: Array<HeatmapCreateHeatmapParams.Point | null>;
1058
+ }
1059
+
1060
+ export namespace HeatmapCreateHeatmapParams {
1061
+ export interface Point {
1062
+ /**
1063
+ * Latitude of the point.
1064
+ */
1065
+ lat: number;
1066
+
1067
+ /**
1068
+ * Longitude of the point.
1069
+ */
1070
+ lng: number;
1071
+ }
1072
+ }
1073
+
1074
+ export interface HeatmapListLocationsParams {
1075
+ /**
1076
+ * Filter by address (partial match).
1077
+ */
1078
+ 'filter[address]'?: string;
1079
+
1080
+ /**
1081
+ * Filter by city.
1082
+ */
1083
+ 'filter[city]'?: string;
1084
+
1085
+ /**
1086
+ * Filter by location ID.
1087
+ */
1088
+ 'filter[id]'?: number;
1089
+
1090
+ /**
1091
+ * Filter by location name (partial match).
1092
+ */
1093
+ 'filter[location_name]'?: string;
1094
+
1095
+ /**
1096
+ * Filter by Google Place ID (exact).
1097
+ */
1098
+ 'filter[place_id]'?: string;
1099
+
1100
+ /**
1101
+ * Filter by primary business category.
1102
+ */
1103
+ 'filter[primary_category]'?: string;
1104
+
1105
+ /**
1106
+ * Filter by state.
1107
+ */
1108
+ 'filter[state]'?: string;
1109
+
1110
+ /**
1111
+ * Filter by zip code.
1112
+ */
1113
+ 'filter[zip_code]'?: string;
1114
+
1115
+ /**
1116
+ * Page number.
1117
+ */
1118
+ page?: number;
1119
+
1120
+ /**
1121
+ * Number of results per page (default 25).
1122
+ */
1123
+ per_page?: number;
1124
+
1125
+ /**
1126
+ * Sort field. Prefix with `-` for descending. Accepted: `location_name`,
1127
+ * `address`, `city`, `state`, `zip_code`, `primary_category`, `website_url`,
1128
+ * `review_count`, `ave_review_rating`, `created_at`, `last_review_date`,
1129
+ * `is_connected`, `location_state`, `media_count`, `unreplied_review_count`,
1130
+ * `completion_percentage`.
1131
+ */
1132
+ sort?: string;
1133
+ }
1134
+
1135
+ Heatmap.Schedules = Schedules;
1136
+
1137
+ export declare namespace Heatmap {
1138
+ export {
1139
+ type HeatmapCreateHeatmapResponse as HeatmapCreateHeatmapResponse,
1140
+ type HeatmapGenerateGridPointsResponse as HeatmapGenerateGridPointsResponse,
1141
+ type HeatmapListHeatmapsResponse as HeatmapListHeatmapsResponse,
1142
+ type HeatmapListLocationsResponse as HeatmapListLocationsResponse,
1143
+ type HeatmapRetrieveHeatmapResponse as HeatmapRetrieveHeatmapResponse,
1144
+ type HeatmapRetrieveHeatmapCompetitorsResponse as HeatmapRetrieveHeatmapCompetitorsResponse,
1145
+ type HeatmapRetrieveHeatmapPointResponse as HeatmapRetrieveHeatmapPointResponse,
1146
+ type HeatmapGenerateGridPointsParams as HeatmapGenerateGridPointsParams,
1147
+ type HeatmapRetrieveHeatmapPointParams as HeatmapRetrieveHeatmapPointParams,
1148
+ type HeatmapListHeatmapsParams as HeatmapListHeatmapsParams,
1149
+ type HeatmapCreateHeatmapParams as HeatmapCreateHeatmapParams,
1150
+ type HeatmapListLocationsParams as HeatmapListLocationsParams,
1151
+ };
1152
+
1153
+ export {
1154
+ Schedules as Schedules,
1155
+ type ScheduleCreateScheduleResponse as ScheduleCreateScheduleResponse,
1156
+ type ScheduleListSchedulesResponse as ScheduleListSchedulesResponse,
1157
+ type SchedulePauseScheduleResponse as SchedulePauseScheduleResponse,
1158
+ type ScheduleResumeScheduleResponse as ScheduleResumeScheduleResponse,
1159
+ type ScheduleRetrieveScheduleResponse as ScheduleRetrieveScheduleResponse,
1160
+ type ScheduleUpdateScheduleResponse as ScheduleUpdateScheduleResponse,
1161
+ type ScheduleListSchedulesParams as ScheduleListSchedulesParams,
1162
+ type ScheduleCreateScheduleParams as ScheduleCreateScheduleParams,
1163
+ type ScheduleUpdateScheduleParams as ScheduleUpdateScheduleParams,
1164
+ };
1165
+ }