@peernova/cuneiform-sf 1.0.2 → 1.0.4-beta.10

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 (488) hide show
  1. package/LICENSE +81 -30
  2. package/README.md +168 -134
  3. package/lib/adapters/connection-facade.d.ts +458 -0
  4. package/lib/adapters/connection-facade.js +379 -0
  5. package/lib/adapters/connection-facade.js.map +1 -0
  6. package/lib/adapters/errors.d.ts +547 -0
  7. package/lib/adapters/errors.js +937 -0
  8. package/lib/adapters/errors.js.map +1 -0
  9. package/lib/adapters/lifecycle.d.ts +112 -0
  10. package/lib/adapters/lifecycle.js +94 -0
  11. package/lib/adapters/lifecycle.js.map +1 -0
  12. package/lib/adapters/rest/cache.d.ts +69 -0
  13. package/lib/adapters/rest/cache.js +133 -0
  14. package/lib/adapters/rest/cache.js.map +1 -0
  15. package/lib/adapters/rest/index.d.ts +11 -0
  16. package/lib/adapters/rest/index.js +18 -0
  17. package/lib/adapters/rest/index.js.map +1 -0
  18. package/lib/adapters/rest/profiling-rest-client.d.ts +137 -0
  19. package/lib/adapters/rest/profiling-rest-client.js +115 -0
  20. package/lib/adapters/rest/profiling-rest-client.js.map +1 -0
  21. package/lib/adapters/rest/rest-api-adapter.d.ts +393 -0
  22. package/lib/adapters/rest/rest-api-adapter.js +764 -0
  23. package/lib/adapters/rest/rest-api-adapter.js.map +1 -0
  24. package/lib/adapters/rest/types.d.ts +34 -0
  25. package/lib/adapters/rest/types.js +9 -0
  26. package/lib/adapters/rest/types.js.map +1 -0
  27. package/lib/adapters/retry.d.ts +91 -0
  28. package/lib/adapters/retry.js +215 -0
  29. package/lib/adapters/retry.js.map +1 -0
  30. package/lib/adapters/soql/cuneiform-query-builder.d.ts +418 -0
  31. package/lib/adapters/soql/cuneiform-query-builder.js +606 -0
  32. package/lib/adapters/soql/cuneiform-query-builder.js.map +1 -0
  33. package/lib/adapters/soql/soql-query-adapter.d.ts +141 -0
  34. package/lib/adapters/soql/soql-query-adapter.js +259 -0
  35. package/lib/adapters/soql/soql-query-adapter.js.map +1 -0
  36. package/lib/adapters/soql/types.d.ts +37 -0
  37. package/lib/adapters/soql/types.js +19 -0
  38. package/lib/adapters/soql/types.js.map +1 -0
  39. package/lib/adapters/testing/index.d.ts +37 -0
  40. package/lib/adapters/testing/index.js +20 -0
  41. package/lib/adapters/testing/index.js.map +1 -0
  42. package/lib/adapters/testing/mock-connection.d.ts +77 -0
  43. package/lib/adapters/testing/mock-connection.js +207 -0
  44. package/lib/adapters/testing/mock-connection.js.map +1 -0
  45. package/lib/adapters/testing/mock-logger.d.ts +29 -0
  46. package/lib/adapters/testing/mock-logger.js +57 -0
  47. package/lib/adapters/testing/mock-logger.js.map +1 -0
  48. package/lib/adapters/testing/mock-mcp-adapters.d.ts +32 -0
  49. package/lib/adapters/testing/mock-mcp-adapters.js +52 -0
  50. package/lib/adapters/testing/mock-mcp-adapters.js.map +1 -0
  51. package/lib/adapters/testing/mock-oclif-config.d.ts +22 -0
  52. package/lib/adapters/testing/mock-oclif-config.js +90 -0
  53. package/lib/adapters/testing/mock-oclif-config.js.map +1 -0
  54. package/lib/adapters/testing/mock-rest-adapter.d.ts +26 -0
  55. package/lib/adapters/testing/mock-rest-adapter.js +243 -0
  56. package/lib/adapters/testing/mock-rest-adapter.js.map +1 -0
  57. package/lib/adapters/testing/mock-salesforce-connection.d.ts +40 -0
  58. package/lib/adapters/testing/mock-salesforce-connection.js +61 -0
  59. package/lib/adapters/testing/mock-salesforce-connection.js.map +1 -0
  60. package/lib/adapters/testing/mock-soql-adapter.d.ts +30 -0
  61. package/lib/adapters/testing/mock-soql-adapter.js +120 -0
  62. package/lib/adapters/testing/mock-soql-adapter.js.map +1 -0
  63. package/lib/adapters/testing/mock-tooling-adapter.d.ts +24 -0
  64. package/lib/adapters/testing/mock-tooling-adapter.js +163 -0
  65. package/lib/adapters/testing/mock-tooling-adapter.js.map +1 -0
  66. package/lib/adapters/testing/stub-connection.d.ts +93 -0
  67. package/lib/adapters/testing/stub-connection.js +97 -0
  68. package/lib/adapters/testing/stub-connection.js.map +1 -0
  69. package/lib/adapters/testing/stub-rest-adapter.d.ts +52 -0
  70. package/lib/adapters/testing/stub-rest-adapter.js +58 -0
  71. package/lib/adapters/testing/stub-rest-adapter.js.map +1 -0
  72. package/lib/adapters/testing/stub-soql-adapter.d.ts +56 -0
  73. package/lib/adapters/testing/stub-soql-adapter.js +50 -0
  74. package/lib/adapters/testing/stub-soql-adapter.js.map +1 -0
  75. package/lib/adapters/testing/types.d.ts +71 -0
  76. package/lib/adapters/testing/types.js +9 -0
  77. package/lib/adapters/testing/types.js.map +1 -0
  78. package/lib/adapters/tooling/index.d.ts +10 -0
  79. package/lib/adapters/tooling/index.js +17 -0
  80. package/lib/adapters/tooling/index.js.map +1 -0
  81. package/lib/adapters/tooling/tooling-api-adapter.d.ts +157 -0
  82. package/lib/adapters/tooling/tooling-api-adapter.js +339 -0
  83. package/lib/adapters/tooling/tooling-api-adapter.js.map +1 -0
  84. package/lib/adapters/tooling/types.d.ts +81 -0
  85. package/lib/adapters/tooling/types.js +9 -0
  86. package/lib/adapters/tooling/types.js.map +1 -0
  87. package/lib/adapters/types.d.ts +112 -0
  88. package/lib/adapters/types.js +169 -0
  89. package/lib/adapters/types.js.map +1 -0
  90. package/lib/base/cuneiform-command.d.ts +175 -0
  91. package/lib/base/cuneiform-command.js +326 -0
  92. package/lib/base/cuneiform-command.js.map +1 -0
  93. package/lib/commands/cuneiform/compatibility/check.d.ts +43 -0
  94. package/lib/commands/cuneiform/compatibility/check.js +114 -0
  95. package/lib/commands/cuneiform/compatibility/check.js.map +1 -0
  96. package/lib/commands/cuneiform/definition/create.d.ts +120 -0
  97. package/lib/commands/cuneiform/definition/create.js +737 -0
  98. package/lib/commands/cuneiform/definition/create.js.map +1 -0
  99. package/lib/commands/cuneiform/definition/export.d.ts +57 -0
  100. package/lib/commands/cuneiform/definition/export.js +133 -0
  101. package/lib/commands/cuneiform/definition/export.js.map +1 -0
  102. package/lib/commands/cuneiform/definition/get.d.ts +86 -0
  103. package/lib/commands/cuneiform/definition/get.js +277 -0
  104. package/lib/commands/cuneiform/definition/get.js.map +1 -0
  105. package/lib/commands/cuneiform/definition/import.d.ts +54 -0
  106. package/lib/commands/cuneiform/definition/import.js +118 -0
  107. package/lib/commands/cuneiform/definition/import.js.map +1 -0
  108. package/lib/commands/cuneiform/definition/list.d.ts +110 -0
  109. package/lib/commands/cuneiform/definition/list.js +351 -0
  110. package/lib/commands/cuneiform/definition/list.js.map +1 -0
  111. package/lib/commands/cuneiform/definition/purge.d.ts +109 -0
  112. package/lib/commands/cuneiform/definition/purge.js +578 -0
  113. package/lib/commands/cuneiform/definition/purge.js.map +1 -0
  114. package/lib/commands/cuneiform/definition/update.d.ts +58 -0
  115. package/lib/commands/cuneiform/definition/update.js +209 -0
  116. package/lib/commands/cuneiform/definition/update.js.map +1 -0
  117. package/lib/commands/cuneiform/mcp/serve.d.ts +56 -0
  118. package/lib/commands/cuneiform/mcp/serve.js +109 -0
  119. package/lib/commands/cuneiform/mcp/serve.js.map +1 -0
  120. package/lib/commands/cuneiform/object/describe.d.ts +61 -0
  121. package/lib/commands/cuneiform/object/describe.js +461 -0
  122. package/lib/commands/cuneiform/object/describe.js.map +1 -0
  123. package/lib/commands/cuneiform/object/list.d.ts +123 -0
  124. package/lib/commands/cuneiform/object/list.js +264 -0
  125. package/lib/commands/cuneiform/object/list.js.map +1 -0
  126. package/lib/commands/cuneiform/org/details.d.ts +99 -0
  127. package/lib/commands/cuneiform/org/details.js +521 -0
  128. package/lib/commands/cuneiform/org/details.js.map +1 -0
  129. package/lib/commands/cuneiform/org/reset.d.ts +46 -0
  130. package/lib/commands/cuneiform/org/reset.js +135 -0
  131. package/lib/commands/cuneiform/org/reset.js.map +1 -0
  132. package/lib/commands/cuneiform/profile/request/cancel.d.ts +59 -0
  133. package/lib/commands/cuneiform/profile/request/cancel.js +202 -0
  134. package/lib/commands/cuneiform/profile/request/cancel.js.map +1 -0
  135. package/lib/commands/cuneiform/profile/request/delete.d.ts +59 -0
  136. package/lib/commands/cuneiform/profile/request/delete.js +223 -0
  137. package/lib/commands/cuneiform/profile/request/delete.js.map +1 -0
  138. package/lib/commands/cuneiform/profile/request/list.d.ts +35 -0
  139. package/lib/commands/cuneiform/profile/request/list.js +102 -0
  140. package/lib/commands/cuneiform/profile/request/list.js.map +1 -0
  141. package/lib/commands/cuneiform/profile.d.ts +93 -0
  142. package/lib/commands/cuneiform/profile.js +353 -0
  143. package/lib/commands/cuneiform/profile.js.map +1 -0
  144. package/lib/commands/cuneiform/summary/purge.d.ts +80 -0
  145. package/lib/commands/cuneiform/summary/purge.js +467 -0
  146. package/lib/commands/cuneiform/summary/purge.js.map +1 -0
  147. package/lib/commands/cuneiform/summary/reprofile.d.ts +60 -0
  148. package/lib/commands/cuneiform/summary/reprofile.js +236 -0
  149. package/lib/commands/cuneiform/summary/reprofile.js.map +1 -0
  150. package/lib/commands/cuneiform/summary/stop.d.ts +59 -0
  151. package/lib/commands/cuneiform/summary/stop.js +234 -0
  152. package/lib/commands/cuneiform/summary/stop.js.map +1 -0
  153. package/lib/commands/cuneiform/user/details.d.ts +77 -0
  154. package/lib/commands/cuneiform/user/details.js +414 -0
  155. package/lib/commands/cuneiform/user/details.js.map +1 -0
  156. package/lib/constants/namespace-constants.d.ts +102 -0
  157. package/lib/constants/namespace-constants.js +225 -0
  158. package/lib/constants/namespace-constants.js.map +1 -0
  159. package/lib/debug/command-debug-proxy.d.ts +101 -0
  160. package/lib/debug/command-debug-proxy.js +171 -0
  161. package/lib/debug/command-debug-proxy.js.map +1 -0
  162. package/lib/debug/debug-logger.d.ts +85 -0
  163. package/lib/debug/debug-logger.js +133 -0
  164. package/lib/debug/debug-logger.js.map +1 -0
  165. package/lib/debug/service-debug-proxy.d.ts +30 -0
  166. package/lib/debug/service-debug-proxy.js +102 -0
  167. package/lib/debug/service-debug-proxy.js.map +1 -0
  168. package/lib/hooks/prerun.d.ts +25 -0
  169. package/lib/hooks/prerun.js +47 -0
  170. package/lib/hooks/prerun.js.map +1 -0
  171. package/lib/mcp/config/mcp-config.d.ts +55 -0
  172. package/lib/mcp/config/mcp-config.js +51 -0
  173. package/lib/mcp/config/mcp-config.js.map +1 -0
  174. package/lib/mcp/config/pagination.d.ts +96 -0
  175. package/lib/mcp/config/pagination.js +108 -0
  176. package/lib/mcp/config/pagination.js.map +1 -0
  177. package/lib/mcp/config/system-prompts.d.ts +18 -0
  178. package/lib/mcp/config/system-prompts.js +92 -0
  179. package/lib/mcp/config/system-prompts.js.map +1 -0
  180. package/lib/mcp/errors.d.ts +23 -0
  181. package/lib/mcp/errors.js +27 -0
  182. package/lib/mcp/errors.js.map +1 -0
  183. package/lib/mcp/schemas/input-schemas.d.ts +327 -0
  184. package/lib/mcp/schemas/input-schemas.js +310 -0
  185. package/lib/mcp/schemas/input-schemas.js.map +1 -0
  186. package/lib/mcp/server.d.ts +40 -0
  187. package/lib/mcp/server.js +316 -0
  188. package/lib/mcp/server.js.map +1 -0
  189. package/lib/mcp/tools/contactpoint-tools.d.ts +14 -0
  190. package/lib/mcp/tools/contactpoint-tools.js +34 -0
  191. package/lib/mcp/tools/contactpoint-tools.js.map +1 -0
  192. package/lib/mcp/tools/definition-io-tools.d.ts +19 -0
  193. package/lib/mcp/tools/definition-io-tools.js +152 -0
  194. package/lib/mcp/tools/definition-io-tools.js.map +1 -0
  195. package/lib/mcp/tools/definition-tools.d.ts +51 -0
  196. package/lib/mcp/tools/definition-tools.js +220 -0
  197. package/lib/mcp/tools/definition-tools.js.map +1 -0
  198. package/lib/mcp/tools/index.d.ts +37 -0
  199. package/lib/mcp/tools/index.js +88 -0
  200. package/lib/mcp/tools/index.js.map +1 -0
  201. package/lib/mcp/tools/object-tools.d.ts +22 -0
  202. package/lib/mcp/tools/object-tools.js +327 -0
  203. package/lib/mcp/tools/object-tools.js.map +1 -0
  204. package/lib/mcp/tools/org-tools.d.ts +14 -0
  205. package/lib/mcp/tools/org-tools.js +177 -0
  206. package/lib/mcp/tools/org-tools.js.map +1 -0
  207. package/lib/mcp/tools/profile-tools.d.ts +59 -0
  208. package/lib/mcp/tools/profile-tools.js +213 -0
  209. package/lib/mcp/tools/profile-tools.js.map +1 -0
  210. package/lib/mcp/tools/summary-tools.d.ts +14 -0
  211. package/lib/mcp/tools/summary-tools.js +38 -0
  212. package/lib/mcp/tools/summary-tools.js.map +1 -0
  213. package/lib/mcp/tools/tool-factory.d.ts +63 -0
  214. package/lib/mcp/tools/tool-factory.js +146 -0
  215. package/lib/mcp/tools/tool-factory.js.map +1 -0
  216. package/lib/mcp/tools/user-tools.d.ts +25 -0
  217. package/lib/mcp/tools/user-tools.js +167 -0
  218. package/lib/mcp/tools/user-tools.js.map +1 -0
  219. package/lib/models/cascade-skip-accumulator.d.ts +25 -0
  220. package/lib/models/cascade-skip-accumulator.js +9 -0
  221. package/lib/models/cascade-skip-accumulator.js.map +1 -0
  222. package/lib/models/date-literal.d.ts +280 -0
  223. package/lib/models/date-literal.js +1164 -0
  224. package/lib/models/date-literal.js.map +1 -0
  225. package/lib/models/object-describe-types.d.ts +173 -0
  226. package/lib/models/object-describe-types.js +9 -0
  227. package/lib/models/object-describe-types.js.map +1 -0
  228. package/lib/models/portability-recipe.d.ts +35 -0
  229. package/lib/models/portability-recipe.js +113 -0
  230. package/lib/models/portability-recipe.js.map +1 -0
  231. package/lib/models/profile-request-types.d.ts +118 -0
  232. package/lib/models/profile-request-types.js +23 -0
  233. package/lib/models/profile-request-types.js.map +1 -0
  234. package/lib/models/profiling-execution-types.d.ts +154 -0
  235. package/lib/models/profiling-execution-types.js +14 -0
  236. package/lib/models/profiling-execution-types.js.map +1 -0
  237. package/lib/models/service-result.d.ts +114 -0
  238. package/lib/models/service-result.js +81 -0
  239. package/lib/models/service-result.js.map +1 -0
  240. package/lib/models/sfdmu-types.d.ts +49 -0
  241. package/lib/models/sfdmu-types.js +23 -0
  242. package/lib/models/sfdmu-types.js.map +1 -0
  243. package/lib/models/status-types.d.ts +38 -0
  244. package/lib/models/status-types.js +12 -0
  245. package/lib/models/status-types.js.map +1 -0
  246. package/lib/models/summary-bulk-types.d.ts +61 -0
  247. package/lib/models/summary-bulk-types.js +23 -0
  248. package/lib/models/summary-bulk-types.js.map +1 -0
  249. package/lib/models/user-details-types.d.ts +188 -0
  250. package/lib/models/user-details-types.js +9 -0
  251. package/lib/models/user-details-types.js.map +1 -0
  252. package/lib/models/year-range.d.ts +78 -0
  253. package/lib/models/year-range.js +153 -0
  254. package/lib/models/year-range.js.map +1 -0
  255. package/lib/operations/CompatibilityCheckOperation.d.ts +62 -0
  256. package/lib/operations/CompatibilityCheckOperation.js +102 -0
  257. package/lib/operations/CompatibilityCheckOperation.js.map +1 -0
  258. package/lib/operations/DefinitionCreateOperation.d.ts +427 -0
  259. package/lib/operations/DefinitionCreateOperation.js +1270 -0
  260. package/lib/operations/DefinitionCreateOperation.js.map +1 -0
  261. package/lib/operations/DefinitionExportOperation.d.ts +155 -0
  262. package/lib/operations/DefinitionExportOperation.js +281 -0
  263. package/lib/operations/DefinitionExportOperation.js.map +1 -0
  264. package/lib/operations/DefinitionImportOperation.d.ts +144 -0
  265. package/lib/operations/DefinitionImportOperation.js +357 -0
  266. package/lib/operations/DefinitionImportOperation.js.map +1 -0
  267. package/lib/operations/DefinitionListOperation.d.ts +66 -0
  268. package/lib/operations/DefinitionListOperation.js +108 -0
  269. package/lib/operations/DefinitionListOperation.js.map +1 -0
  270. package/lib/operations/DefinitionPurgeOperation.d.ts +203 -0
  271. package/lib/operations/DefinitionPurgeOperation.js +465 -0
  272. package/lib/operations/DefinitionPurgeOperation.js.map +1 -0
  273. package/lib/operations/DefinitionUpdateOperation.d.ts +78 -0
  274. package/lib/operations/DefinitionUpdateOperation.js +142 -0
  275. package/lib/operations/DefinitionUpdateOperation.js.map +1 -0
  276. package/lib/operations/OrgDetailsOperation.d.ts +253 -0
  277. package/lib/operations/OrgDetailsOperation.js +456 -0
  278. package/lib/operations/OrgDetailsOperation.js.map +1 -0
  279. package/lib/operations/OrgResetOperation.d.ts +114 -0
  280. package/lib/operations/OrgResetOperation.js +209 -0
  281. package/lib/operations/OrgResetOperation.js.map +1 -0
  282. package/lib/operations/ProfileOperation.d.ts +192 -0
  283. package/lib/operations/ProfileOperation.js +371 -0
  284. package/lib/operations/ProfileOperation.js.map +1 -0
  285. package/lib/operations/ProfileRequestCancelOperation.d.ts +59 -0
  286. package/lib/operations/ProfileRequestCancelOperation.js +137 -0
  287. package/lib/operations/ProfileRequestCancelOperation.js.map +1 -0
  288. package/lib/operations/ProfileRequestDeleteOperation.d.ts +64 -0
  289. package/lib/operations/ProfileRequestDeleteOperation.js +134 -0
  290. package/lib/operations/ProfileRequestDeleteOperation.js.map +1 -0
  291. package/lib/operations/ProfileRequestListOperation.d.ts +39 -0
  292. package/lib/operations/ProfileRequestListOperation.js +61 -0
  293. package/lib/operations/ProfileRequestListOperation.js.map +1 -0
  294. package/lib/operations/SummaryPurgeOperation.d.ts +134 -0
  295. package/lib/operations/SummaryPurgeOperation.js +257 -0
  296. package/lib/operations/SummaryPurgeOperation.js.map +1 -0
  297. package/lib/operations/SummaryReprofileOperation.d.ts +88 -0
  298. package/lib/operations/SummaryReprofileOperation.js +174 -0
  299. package/lib/operations/SummaryReprofileOperation.js.map +1 -0
  300. package/lib/operations/SummaryStopOperation.d.ts +87 -0
  301. package/lib/operations/SummaryStopOperation.js +175 -0
  302. package/lib/operations/SummaryStopOperation.js.map +1 -0
  303. package/lib/services/BulkExecutionService.d.ts +120 -0
  304. package/lib/services/BulkExecutionService.js +535 -0
  305. package/lib/services/BulkExecutionService.js.map +1 -0
  306. package/lib/services/CompatibilityService.d.ts +81 -0
  307. package/lib/services/CompatibilityService.js +118 -0
  308. package/lib/services/CompatibilityService.js.map +1 -0
  309. package/lib/services/ConfigureMode.d.ts +98 -0
  310. package/lib/services/ConfigureMode.js +413 -0
  311. package/lib/services/ConfigureMode.js.map +1 -0
  312. package/lib/services/ContactPointService.d.ts +111 -0
  313. package/lib/services/ContactPointService.js +286 -0
  314. package/lib/services/ContactPointService.js.map +1 -0
  315. package/lib/services/DataAvailabilityService.d.ts +81 -0
  316. package/lib/services/DataAvailabilityService.js +128 -0
  317. package/lib/services/DataAvailabilityService.js.map +1 -0
  318. package/lib/services/DefinitionFieldGenerationService.d.ts +357 -0
  319. package/lib/services/DefinitionFieldGenerationService.js +899 -0
  320. package/lib/services/DefinitionFieldGenerationService.js.map +1 -0
  321. package/lib/services/DefinitionQueryBuilder.d.ts +92 -0
  322. package/lib/services/DefinitionQueryBuilder.js +328 -0
  323. package/lib/services/DefinitionQueryBuilder.js.map +1 -0
  324. package/lib/services/ObjectDescribeService.d.ts +436 -0
  325. package/lib/services/ObjectDescribeService.js +881 -0
  326. package/lib/services/ObjectDescribeService.js.map +1 -0
  327. package/lib/services/ObjectFilteringService.d.ts +484 -0
  328. package/lib/services/ObjectFilteringService.js +1080 -0
  329. package/lib/services/ObjectFilteringService.js.map +1 -0
  330. package/lib/services/ObjectListCommandService.d.ts +467 -0
  331. package/lib/services/ObjectListCommandService.js +904 -0
  332. package/lib/services/ObjectListCommandService.js.map +1 -0
  333. package/lib/services/ObjectListService.d.ts +201 -0
  334. package/lib/services/ObjectListService.js +350 -0
  335. package/lib/services/ObjectListService.js.map +1 -0
  336. package/lib/services/OrgInfoService.d.ts +493 -0
  337. package/lib/services/OrgInfoService.js +1142 -0
  338. package/lib/services/OrgInfoService.js.map +1 -0
  339. package/lib/services/PollingService.d.ts +105 -0
  340. package/lib/services/PollingService.js +117 -0
  341. package/lib/services/PollingService.js.map +1 -0
  342. package/lib/services/ProfileRequestService.d.ts +186 -0
  343. package/lib/services/ProfileRequestService.js +555 -0
  344. package/lib/services/ProfileRequestService.js.map +1 -0
  345. package/lib/services/ProfilingDefinitionService.d.ts +575 -0
  346. package/lib/services/ProfilingDefinitionService.js +1029 -0
  347. package/lib/services/ProfilingDefinitionService.js.map +1 -0
  348. package/lib/services/ProfilingExecutionService.d.ts +122 -0
  349. package/lib/services/ProfilingExecutionService.js +320 -0
  350. package/lib/services/ProfilingExecutionService.js.map +1 -0
  351. package/lib/services/ProfilingSummaryService.d.ts +292 -0
  352. package/lib/services/ProfilingSummaryService.js +688 -0
  353. package/lib/services/ProfilingSummaryService.js.map +1 -0
  354. package/lib/services/RecordTypeService.d.ts +129 -0
  355. package/lib/services/RecordTypeService.js +284 -0
  356. package/lib/services/RecordTypeService.js.map +1 -0
  357. package/lib/services/SFDMUService.d.ts +146 -0
  358. package/lib/services/SFDMUService.js +323 -0
  359. package/lib/services/SFDMUService.js.map +1 -0
  360. package/lib/services/TabDetectionService.d.ts +105 -0
  361. package/lib/services/TabDetectionService.js +206 -0
  362. package/lib/services/TabDetectionService.js.map +1 -0
  363. package/lib/services/UnconfigureMode.d.ts +74 -0
  364. package/lib/services/UnconfigureMode.js +378 -0
  365. package/lib/services/UnconfigureMode.js.map +1 -0
  366. package/lib/services/UserConfigurationService.d.ts +158 -0
  367. package/lib/services/UserConfigurationService.js +574 -0
  368. package/lib/services/UserConfigurationService.js.map +1 -0
  369. package/lib/services/UserConfigurationTypes.d.ts +181 -0
  370. package/lib/services/UserConfigurationTypes.js +14 -0
  371. package/lib/services/UserConfigurationTypes.js.map +1 -0
  372. package/lib/services/UserReadinessService.d.ts +347 -0
  373. package/lib/services/UserReadinessService.js +891 -0
  374. package/lib/services/UserReadinessService.js.map +1 -0
  375. package/lib/services/constants.d.ts +54 -0
  376. package/lib/services/constants.js +71 -0
  377. package/lib/services/constants.js.map +1 -0
  378. package/lib/services/namespace-constants.d.ts +1 -0
  379. package/lib/services/namespace-constants.js +11 -0
  380. package/lib/services/namespace-constants.js.map +1 -0
  381. package/lib/services/namespace-filter.d.ts +36 -0
  382. package/lib/services/namespace-filter.js +109 -0
  383. package/lib/services/namespace-filter.js.map +1 -0
  384. package/lib/services/validation.d.ts +47 -0
  385. package/lib/services/validation.js +119 -0
  386. package/lib/services/validation.js.map +1 -0
  387. package/lib/utils/batch-processor.d.ts +13 -0
  388. package/lib/utils/batch-processor.js +39 -0
  389. package/lib/utils/batch-processor.js.map +1 -0
  390. package/lib/utils/formatting/availability-grid.d.ts +81 -0
  391. package/lib/utils/formatting/availability-grid.js +94 -0
  392. package/lib/utils/formatting/availability-grid.js.map +1 -0
  393. package/lib/utils/formatting/business-process-grid.d.ts +51 -0
  394. package/lib/utils/formatting/business-process-grid.js +58 -0
  395. package/lib/utils/formatting/business-process-grid.js.map +1 -0
  396. package/lib/utils/formatting/command-display.d.ts +154 -0
  397. package/lib/utils/formatting/command-display.js +154 -0
  398. package/lib/utils/formatting/command-display.js.map +1 -0
  399. package/lib/utils/formatting/definition-create-display.d.ts +118 -0
  400. package/lib/utils/formatting/definition-create-display.js +230 -0
  401. package/lib/utils/formatting/definition-create-display.js.map +1 -0
  402. package/lib/utils/formatting/empty-states.d.ts +35 -0
  403. package/lib/utils/formatting/empty-states.js +70 -0
  404. package/lib/utils/formatting/empty-states.js.map +1 -0
  405. package/lib/utils/formatting/errors.d.ts +33 -0
  406. package/lib/utils/formatting/errors.js +72 -0
  407. package/lib/utils/formatting/errors.js.map +1 -0
  408. package/lib/utils/formatting/field-types.d.ts +32 -0
  409. package/lib/utils/formatting/field-types.js +88 -0
  410. package/lib/utils/formatting/field-types.js.map +1 -0
  411. package/lib/utils/formatting/index.d.ts +29 -0
  412. package/lib/utils/formatting/index.js +28 -0
  413. package/lib/utils/formatting/index.js.map +1 -0
  414. package/lib/utils/formatting/indicators.d.ts +113 -0
  415. package/lib/utils/formatting/indicators.js +161 -0
  416. package/lib/utils/formatting/indicators.js.map +1 -0
  417. package/lib/utils/formatting/loading-messages.d.ts +37 -0
  418. package/lib/utils/formatting/loading-messages.js +50 -0
  419. package/lib/utils/formatting/loading-messages.js.map +1 -0
  420. package/lib/utils/formatting/namespace-display.d.ts +31 -0
  421. package/lib/utils/formatting/namespace-display.js +64 -0
  422. package/lib/utils/formatting/namespace-display.js.map +1 -0
  423. package/lib/utils/formatting/numbers.d.ts +73 -0
  424. package/lib/utils/formatting/numbers.js +187 -0
  425. package/lib/utils/formatting/numbers.js.map +1 -0
  426. package/lib/utils/formatting/object-describe-display.d.ts +117 -0
  427. package/lib/utils/formatting/object-describe-display.js +447 -0
  428. package/lib/utils/formatting/object-describe-display.js.map +1 -0
  429. package/lib/utils/formatting/object-list-display.d.ts +225 -0
  430. package/lib/utils/formatting/object-list-display.js +718 -0
  431. package/lib/utils/formatting/object-list-display.js.map +1 -0
  432. package/lib/utils/formatting/org-identity.d.ts +15 -0
  433. package/lib/utils/formatting/org-identity.js +28 -0
  434. package/lib/utils/formatting/org-identity.js.map +1 -0
  435. package/lib/utils/formatting/record-age-grid.d.ts +41 -0
  436. package/lib/utils/formatting/record-age-grid.js +56 -0
  437. package/lib/utils/formatting/record-age-grid.js.map +1 -0
  438. package/lib/utils/formatting/sections.d.ts +108 -0
  439. package/lib/utils/formatting/sections.js +150 -0
  440. package/lib/utils/formatting/sections.js.map +1 -0
  441. package/lib/utils/formatting/tables.d.ts +90 -0
  442. package/lib/utils/formatting/tables.js +113 -0
  443. package/lib/utils/formatting/tables.js.map +1 -0
  444. package/lib/utils/formatting/user-details-display.d.ts +101 -0
  445. package/lib/utils/formatting/user-details-display.js +425 -0
  446. package/lib/utils/formatting/user-details-display.js.map +1 -0
  447. package/lib/utils/pagination/keypress-reader.d.ts +20 -0
  448. package/lib/utils/pagination/keypress-reader.js +63 -0
  449. package/lib/utils/pagination/keypress-reader.js.map +1 -0
  450. package/lib/utils/pagination/paginate-output.d.ts +48 -0
  451. package/lib/utils/pagination/paginate-output.js +136 -0
  452. package/lib/utils/pagination/paginate-output.js.map +1 -0
  453. package/messages/compatibility.check.md +71 -0
  454. package/messages/cuneiform.access.md +138 -0
  455. package/messages/definition.create.md +525 -0
  456. package/messages/definition.export.md +84 -0
  457. package/messages/definition.get.md +147 -0
  458. package/messages/definition.import.md +65 -0
  459. package/messages/definition.list.md +264 -0
  460. package/messages/definition.purge.md +330 -0
  461. package/messages/definition.update.md +118 -0
  462. package/messages/mcp.serve.md +66 -0
  463. package/messages/object.describe.md +205 -0
  464. package/messages/object.list.md +463 -0
  465. package/messages/org.details.md +386 -0
  466. package/messages/org.reset.md +71 -0
  467. package/messages/profile.md +243 -0
  468. package/messages/profile.request.cancel.md +143 -0
  469. package/messages/profile.request.delete.md +139 -0
  470. package/messages/profile.request.list.md +89 -0
  471. package/messages/summary.purge.md +218 -0
  472. package/messages/summary.reprofile.md +150 -0
  473. package/messages/summary.stop.md +157 -0
  474. package/messages/user.details.md +501 -0
  475. package/oclif.lock +3267 -2148
  476. package/oclif.manifest.json +2829 -31
  477. package/package.json +104 -18
  478. package/lib/commands/cuneiform/about.d.ts +0 -13
  479. package/lib/commands/cuneiform/about.js +0 -26
  480. package/lib/commands/cuneiform/about.js.map +0 -1
  481. package/lib/commands/hello/world.d.ts +0 -14
  482. package/lib/commands/hello/world.js +0 -27
  483. package/lib/commands/hello/world.js.map +0 -1
  484. package/lib/index.d.ts +0 -2
  485. package/lib/index.js +0 -2
  486. package/lib/index.js.map +0 -1
  487. package/messages/cuneiform.about.md +0 -19
  488. package/messages/hello.world.md +0 -29
@@ -0,0 +1,357 @@
1
+ import { type SupportedDateLiteral } from '../models/date-literal.js';
2
+ import type { DateLiteralRange } from '../models/date-literal.js';
3
+ import type { YearRange } from '../models/year-range.js';
4
+ import type { CascadeSkipAccumulator } from '../models/cascade-skip-accumulator.js';
5
+ import type { SObjectInfo } from '../services/ObjectFilteringService.js';
6
+ import type { CreateDefinitionInput } from '../services/ProfilingDefinitionService.js';
7
+ import type { RecordTypeInfo } from '../services/RecordTypeService.js';
8
+ /**
9
+ * Reference shape for the record-type argument accepted by `buildInputsForRecordType`.
10
+ * Picks just the fields the service needs (id + name) from the upstream `RecordTypeInfo`
11
+ * so the contract is explicit and the call site (DefinitionCreateOperation) can pass the
12
+ * full RecordTypeInfo without structural-type coupling leakage.
13
+ */
14
+ export type RecordTypeRef = Pick<RecordTypeInfo, 'id' | 'name'>;
15
+ /**
16
+ * Maps a Salesforce object to its outcome boolean field with human-readable labels.
17
+ */
18
+ export type OutcomeFieldMapping = {
19
+ /** The boolean field API name (e.g., 'IsWon') */
20
+ fieldName: string;
21
+ /** Label for the true outcome (e.g., 'Won') */
22
+ trueLabel: string;
23
+ /** Label for the false outcome (e.g., 'Lost') */
24
+ falseLabel: string;
25
+ };
26
+ /**
27
+ * A single expression line in the ISV expression builder JSON format.
28
+ * This schema must match what `fsc_expressionBuilder3` LWC expects.
29
+ */
30
+ export type ExpressionLine = {
31
+ id?: number;
32
+ objectType: string;
33
+ parameter: string;
34
+ parameterValue: string | null;
35
+ dataType: string;
36
+ label: string;
37
+ type: string;
38
+ fieldName: string;
39
+ operator: string;
40
+ operatorSymbol: string;
41
+ value: string;
42
+ dateLiteral: string;
43
+ };
44
+ /**
45
+ * The expression builder JSON structure stored in Prop_Filter_JSON_SetA__c / SetB__c.
46
+ */
47
+ export type ExpressionBuilderJson = {
48
+ expressions: ExpressionLine[];
49
+ logicType: 'AND' | 'OR' | 'CUSTOM';
50
+ customLogic?: string;
51
+ };
52
+ /**
53
+ * A single filter set within the filterJson API payload.
54
+ * `json` must be an OBJECT (not a string) — the API does JSON.serialize() on it.
55
+ */
56
+ export type FilterSet = {
57
+ json: ExpressionBuilderJson;
58
+ expression: string;
59
+ };
60
+ /**
61
+ * The filterJson API payload envelope.
62
+ */
63
+ export type FilterJsonPayload = {
64
+ hasFilters: boolean;
65
+ setA: FilterSet;
66
+ setB?: FilterSet;
67
+ };
68
+ /**
69
+ * An entry in the DATE_LITERAL_MAP: maps a key to its $Constant display value,
70
+ * SOQL literal, and human-readable display name.
71
+ */
72
+ export type DateLiteralEntry = {
73
+ constant: string;
74
+ soqlLiteral: string;
75
+ displayName: string;
76
+ };
77
+ /**
78
+ * Resolved definition metadata — category, time, segment, and description.
79
+ * Produced by resolveDefinitionMetadata(), the single source of truth for definition classification.
80
+ */
81
+ export type DefinitionMetadata = {
82
+ category: string;
83
+ timeCategory: string;
84
+ segmentCategory: string;
85
+ description: string;
86
+ };
87
+ /**
88
+ * Context for resolveDefinitionMetadata() — provides the inputs needed to determine
89
+ * the correct classification for any definition type.
90
+ */
91
+ export type DefinitionMetadataContext = {
92
+ timeLabel?: string;
93
+ year?: number;
94
+ unbounded?: boolean;
95
+ /**
96
+ * When true, signals the comparative variant is "lifetime vs X" — SetA is unfiltered (all records), SetB is the
97
+ * supplied secondary filter. Drives name/timeCategory/segmentCategory/description derivations for the variant.
98
+ */
99
+ lifetimePrimary?: boolean;
100
+ recordTypeName?: string;
101
+ outcomeLabels?: {
102
+ trueLabel: string;
103
+ falseLabel: string;
104
+ };
105
+ categoryOverride?: string;
106
+ timeCategoryOverride?: string;
107
+ segmentCategoryOverride?: string;
108
+ descriptionOverride?: string;
109
+ noValueFrequency?: boolean;
110
+ namePrefix?: string;
111
+ nameSuffix?: string;
112
+ /**
113
+ * REQ-002 portability naming (CLI-4215). When true, resolveDefinitionName emits the simplified
114
+ * `${label} • ${nameSuffix}` (object + suffix only) and skips the `All Fields`/time-segment composition.
115
+ * This is the bulk-recipe naming mode only — the existing flag-driven paths leave this unset and
116
+ * keep their current bullet naming unchanged. The required `nameSuffix` is enforced at the command
117
+ * boundary (CLI-4264); when set without a suffix the service falls back to the bare object label
118
+ * rather than emitting a trailing separator.
119
+ */
120
+ portabilityNaming?: boolean;
121
+ origin?: string;
122
+ /**
123
+ * The date/datetime field used for time-based filtering (e.g., 'CreatedDate', 'LastModifiedDate').
124
+ * Surfaces in the description template so the rendered text reflects the actual filter field,
125
+ * not a hardcoded "Created Date" string.
126
+ */
127
+ dateField?: string;
128
+ };
129
+ /**
130
+ * Subset of CreateOptions needed by field generation methods.
131
+ * Avoids importing the full CreateOptions type from the operation layer.
132
+ */
133
+ export type FieldGenerationOptions = {
134
+ method?: 'metadata' | 'historical' | 'comparative' | 'recordtype' | 'outcome' | 'full';
135
+ year?: number;
136
+ usePrior?: boolean;
137
+ /**
138
+ * When true with method='comparative', selects the lifetime-vs-X variant (SetA unfiltered, SetB filtered by the
139
+ * supplied secondary filter). Read by buildCandidateInputs to branch filter JSON construction and metadata derivation.
140
+ */
141
+ lifetimePrimary?: boolean;
142
+ category?: string;
143
+ timeCategory?: string;
144
+ segmentCategory?: string;
145
+ description?: string;
146
+ noValueFrequency?: boolean;
147
+ namePrefix?: string;
148
+ nameSuffix?: string;
149
+ /** REQ-002 portability naming (CLI-4215). Propagated to DefinitionMetadataContext.portabilityNaming. */
150
+ portabilityNaming?: boolean;
151
+ origin?: string;
152
+ recordType?: string;
153
+ dateLiteralRange?: DateLiteralRange;
154
+ };
155
+ /**
156
+ * Pure field generation service for profiling definitions.
157
+ *
158
+ * Encapsulates stateless naming, categorisation, description, and candidate-input
159
+ * building logic extracted from DefinitionCreateOperation. Every method is
160
+ * `public static` — no constructor dependencies, no adapters, no connection.
161
+ *
162
+ * The DefinitionCreateOperation delegates to this service for:
163
+ * - Definition name resolution (buildName, resolveDefinitionName)
164
+ * - Category / time-category / segment-category resolution
165
+ * - Description template generation
166
+ * - Candidate input construction for metadata, historical, comparative, record-type, and outcome methods
167
+ * - Outcome field lookup and filter JSON construction
168
+ */
169
+ export declare class DefinitionFieldGenerationService {
170
+ /** Exposes the date literal constant map for external consumers and tests. */
171
+ static readonly DATE_LITERAL_MAP: Record<string, DateLiteralEntry>;
172
+ /** The bullet separator used in definition names. */
173
+ static readonly NAME_SEPARATOR = " \u2022 ";
174
+ /**
175
+ * Resolves the definition name from the method and context.
176
+ * Single source of truth for definition naming across all definition types.
177
+ *
178
+ * @param label - Object label (e.g., 'Account', 'Lead')
179
+ * @param method - ISV method (metadata, historical, comparative)
180
+ * @param context - Optional context: timeLabel, year, recordTypeName, outcomeLabels, unbounded
181
+ * @returns The formatted definition name
182
+ */
183
+ static resolveDefinitionName(label: string, method: 'metadata' | 'historical' | 'comparative', context?: DefinitionMetadataContext): string;
184
+ /**
185
+ * Resolves all definition metadata (category, timeCategory, segmentCategory, description)
186
+ * from the method and context. Single source of truth for definition classification.
187
+ *
188
+ * @param label - Object label (e.g., 'Account', 'Lead')
189
+ * @param method - ISV method (metadata, historical, comparative)
190
+ * @param context - Optional context: timeLabel, year, recordTypeName, outcomeLabels, overrides
191
+ * @returns Resolved metadata for the definition
192
+ */
193
+ static resolveDefinitionMetadata(label: string, method: 'metadata' | 'historical' | 'comparative', context?: DefinitionMetadataContext): DefinitionMetadata;
194
+ /**
195
+ * Maps Salesforce objects to their outcome boolean fields.
196
+ *
197
+ * @param objectName - Salesforce object API name (e.g., 'Opportunity', 'Case', 'Lead')
198
+ * @returns Outcome field mapping, or undefined if the object has no outcome field
199
+ */
200
+ static getOutcomeField(objectName: string): OutcomeFieldMapping | undefined;
201
+ /**
202
+ * Builds a single outcome definition input for a given object, outcome mapping, and optional time/RT context.
203
+ * Consolidates the repeated context + input construction pattern used across buildOutcomeCandidateInputs
204
+ * and buildInputsForRecordType.
205
+ *
206
+ * @param obj - Resolved SObject metadata
207
+ * @param outcome - Outcome field mapping for the object
208
+ * @param options - Field generation options
209
+ * @param timeLabel - Optional time label (e.g., 'This Year')
210
+ * @param recordTypeName - Optional record type developer name
211
+ * @param dateLiteral - Optional date literal key
212
+ * @param dateField - Optional date field API name
213
+ * @returns A single CreateDefinitionInput for the outcome comparison
214
+ */
215
+ static buildOutcomeInput(obj: SObjectInfo, outcome: OutcomeFieldMapping, options: FieldGenerationOptions, timeLabel?: string, recordTypeName?: string, dateLiteral?: string, dateField?: string): CreateDefinitionInput;
216
+ /**
217
+ * Builds an ISV-compatible filterJson string for business process outcome comparisons.
218
+ * SetA filters for the true outcome, SetB filters for the false outcome.
219
+ * Produces the expression builder JSON schema that `fsc_expressionBuilder3` expects.
220
+ *
221
+ * @param fieldName - Boolean field API name (e.g., 'IsWon', 'IsClosed', 'IsConverted')
222
+ * @param objectName - Salesforce object API name (e.g., 'Opportunity', 'Case', 'Lead')
223
+ * @param dateLiteral - Optional date literal key for time-scoped outcome filters
224
+ * @param dateField - Optional date field API name
225
+ * @param objectLabel - Optional object label for display in date expressions
226
+ * @returns JSON string compatible with GlobalProfilingService.createProfilingDefinition()
227
+ */
228
+ static buildOutcomeFilterJson(fieldName: string, objectName: string, dateLiteral?: string, dateField?: string, objectLabel?: string, yearBoundary?: {
229
+ year: number;
230
+ unbounded: boolean;
231
+ }): string;
232
+ /**
233
+ * Builds the base definition name from an object label, method, and context.
234
+ *
235
+ * @param label - Object label (e.g., 'Account', 'Lead')
236
+ * @param method - ISV method string
237
+ * @param ctx - Definition metadata context
238
+ * @returns Formatted base definition name (without prefix/suffix)
239
+ */
240
+ static buildName(label: string, method: string, ctx: DefinitionMetadataContext): string;
241
+ /**
242
+ * Resolves the time-segment label for the lifetime-vs-X comparative variant. Prefers an explicit
243
+ * timeLabel (set by the operation layer for date literals or year-range spans), then falls back
244
+ * to the year for single-year cascade entries. Used by buildName, resolveTimeCategoryFromContext,
245
+ * and resolveDescription so the lifetime variant renders consistently.
246
+ */
247
+ static resolveLifetimeTimeLabel(ctx: DefinitionMetadataContext): string;
248
+ /**
249
+ * Resolves the primary category from method and context.
250
+ *
251
+ * @param method - ISV method string
252
+ * @param ctx - Definition metadata context
253
+ * @returns Category string (e.g., 'Metadata', 'Baseline', 'Comparative', 'Record Types')
254
+ */
255
+ static resolveCategory(method: string, ctx: DefinitionMetadataContext): string;
256
+ /**
257
+ * Resolves the time category from method and context.
258
+ *
259
+ * @param method - ISV method string
260
+ * @param ctx - Definition metadata context
261
+ * @returns Time category string (e.g., 'N/A', 'Lifetime', '2025 vs 2024')
262
+ */
263
+ static resolveTimeCategoryFromContext(method: string, ctx: DefinitionMetadataContext): string;
264
+ /**
265
+ * Resolves the segment category from method and context.
266
+ *
267
+ * @param method - ISV method string
268
+ * @param ctx - Definition metadata context
269
+ * @returns Segment category string (e.g., 'N/A', 'Historical', 'Comparative', record type name)
270
+ */
271
+ static resolveSegmentCategory(method: string, ctx: DefinitionMetadataContext): string;
272
+ /**
273
+ * Generates a human-readable description from label, method, and context.
274
+ *
275
+ * @param label - Object label (e.g., 'Account', 'Lead')
276
+ * @param method - ISV method string
277
+ * @param ctx - Definition metadata context
278
+ * @returns Generated description string
279
+ */
280
+ static resolveDescription(label: string, method: string, ctx: DefinitionMetadataContext): string;
281
+ /**
282
+ * Selects the comparative filter JSON for a date-literal entry.
283
+ * lifetimePrimary → SetA empty (all records), SetB = supplied literal.
284
+ * regular comparative → SetA = literal, SetB = prior from LITERAL_CASCADES[literal][1]; falls back to SetA-only when no prior exists.
285
+ * historical/metadata → SetA only.
286
+ */
287
+ static pickDateLiteralComparativeFilter(literal: SupportedDateLiteral, isLifetimeComparative: boolean, dateField: string, objectName: string, objectLabel: string, isRegularComparative?: boolean): string;
288
+ /**
289
+ * Selects the comparative filter JSON for a year-range entry. Returns the lifetime-vs-X
290
+ * variant when in lifetimePrimary mode; otherwise the existing year-vs-prior comparative
291
+ * filter (CLI-2944).
292
+ */
293
+ static pickYearComparativeFilter(entry: {
294
+ year: number;
295
+ unbounded?: boolean;
296
+ }, lifetimePrimary: boolean, objectName: string, objectLabel: string): string;
297
+ /**
298
+ * Builds candidate CreateDefinitionInput entries for non-recordtype methods.
299
+ *
300
+ * For comparative method, creates one input per object per YearRange entry.
301
+ * For metadata/historical, creates one input per object (yearRange is ignored).
302
+ *
303
+ * @param objects - Resolved SObject metadata entries
304
+ * @param method - ISV method (metadata, historical, comparative)
305
+ * @param year - Comparative year (default: current year)
306
+ * @param yearRange - Resolved year range entries
307
+ * @param options - Field generation options
308
+ * @returns Array of candidate definition inputs
309
+ */
310
+ static buildCandidateInputs(objects: SObjectInfo[], method: 'metadata' | 'historical' | 'comparative', year: number, yearRange: YearRange, options: FieldGenerationOptions): CreateDefinitionInput[];
311
+ /**
312
+ * Builds candidate inputs for a single record type on a single object.
313
+ *
314
+ * Creates 1 historical + N comparative definitions (one per YearRange entry).
315
+ * For outcome-capable objects in full method, also adds outcome split per RT.
316
+ *
317
+ * CLI-3834: every emitted input carries a `filterJson` whose SetA carries a `RecordTypeId =
318
+ * <rt.id>` condition AND-composed with any existing time scope. SetB receives the same scope
319
+ * when the underlying filter helper produces it (year-based comparative). Without this, the
320
+ * server-side WHERE clause has no RT filter and profiling runs object-wide.
321
+ *
322
+ * @param obj - Resolved SObject metadata
323
+ * @param rt - Record type reference (id + developer name) — typically the upstream `RecordTypeInfo`. `id` is used to populate the server-side filter; `name` populates the label/segment fields.
324
+ * @param yearRange - Resolved year range entries
325
+ * @param options - Field generation options
326
+ * @returns Array of candidate definition inputs for this record type
327
+ */
328
+ static buildInputsForRecordType(obj: SObjectInfo, rt: RecordTypeRef, yearRange: YearRange, options: FieldGenerationOptions): CreateDefinitionInput[];
329
+ /**
330
+ * Builds candidate inputs for business process outcome profiling.
331
+ * Creates one definition per object that has a business process outcome boolean field.
332
+ *
333
+ * @param objects - Resolved SObject metadata entries
334
+ * @param options - Field generation options
335
+ * @param warnings - Mutable warnings array to append skip messages (standalone callers only)
336
+ * @param yearRange - Optional year range for outcome scoping
337
+ * @param cascade - Optional accumulator. Presence signals cascade-mode (`buildFullCandidateInputs`):
338
+ * objects with no outcome field are silently skipped — no warning is emitted (CLI-3611).
339
+ * Absence is the standalone caller (`--method outcome`) — per-object warning fires as before.
340
+ * @returns Array of candidate definition inputs for outcome-capable objects
341
+ */
342
+ static buildOutcomeCandidateInputs(objects: SObjectInfo[], options: FieldGenerationOptions, warnings: string[], yearRange?: YearRange, cascade?: CascadeSkipAccumulator): CreateDefinitionInput[];
343
+ /**
344
+ * Builds one filter-free metadata-only input per object. Extracted from `buildCandidateInputs`
345
+ * (CLI-3375) to enforce the contract that a metadata-only definition is filter-irrelevant by
346
+ * design — independent of whether the caller passed a date-literal range. Used by the
347
+ * metadata-variant short-circuit at the top of `buildCandidateInputs`.
348
+ */
349
+ private static buildMetadataInputsForObjects;
350
+ /**
351
+ * Builds (object × dateLiteralEntry) inputs for historical and comparative methods. Extracted
352
+ * from `buildCandidateInputs` (CLI-3375) to keep that method's cyclomatic complexity within
353
+ * lint limits after introducing the metadata-variant short-circuit. The metadata variant does
354
+ * NOT route through here — see `buildMetadataInputsForObjects` for that path.
355
+ */
356
+ private static buildDateLiteralInputs;
357
+ }