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

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 (494) hide show
  1. package/LICENSE +81 -30
  2. package/README.md +59 -95
  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/index.d.ts +33 -0
  10. package/lib/adapters/index.js +50 -0
  11. package/lib/adapters/index.js.map +1 -0
  12. package/lib/adapters/lifecycle.d.ts +119 -0
  13. package/lib/adapters/lifecycle.js +94 -0
  14. package/lib/adapters/lifecycle.js.map +1 -0
  15. package/lib/adapters/rest/cache.d.ts +69 -0
  16. package/lib/adapters/rest/cache.js +133 -0
  17. package/lib/adapters/rest/cache.js.map +1 -0
  18. package/lib/adapters/rest/index.d.ts +11 -0
  19. package/lib/adapters/rest/index.js +18 -0
  20. package/lib/adapters/rest/index.js.map +1 -0
  21. package/lib/adapters/rest/profiling-rest-client.d.ts +137 -0
  22. package/lib/adapters/rest/profiling-rest-client.js +115 -0
  23. package/lib/adapters/rest/profiling-rest-client.js.map +1 -0
  24. package/lib/adapters/rest/rest-api-adapter.d.ts +389 -0
  25. package/lib/adapters/rest/rest-api-adapter.js +747 -0
  26. package/lib/adapters/rest/rest-api-adapter.js.map +1 -0
  27. package/lib/adapters/rest/types.d.ts +34 -0
  28. package/lib/adapters/rest/types.js +9 -0
  29. package/lib/adapters/rest/types.js.map +1 -0
  30. package/lib/adapters/retry.d.ts +91 -0
  31. package/lib/adapters/retry.js +215 -0
  32. package/lib/adapters/retry.js.map +1 -0
  33. package/lib/adapters/soql/cuneiform-query-builder.d.ts +391 -0
  34. package/lib/adapters/soql/cuneiform-query-builder.js +559 -0
  35. package/lib/adapters/soql/cuneiform-query-builder.js.map +1 -0
  36. package/lib/adapters/soql/index.d.ts +13 -0
  37. package/lib/adapters/soql/index.js +21 -0
  38. package/lib/adapters/soql/index.js.map +1 -0
  39. package/lib/adapters/soql/soql-query-adapter.d.ts +141 -0
  40. package/lib/adapters/soql/soql-query-adapter.js +259 -0
  41. package/lib/adapters/soql/soql-query-adapter.js.map +1 -0
  42. package/lib/adapters/soql/types.d.ts +37 -0
  43. package/lib/adapters/soql/types.js +19 -0
  44. package/lib/adapters/soql/types.js.map +1 -0
  45. package/lib/adapters/testing/index.d.ts +37 -0
  46. package/lib/adapters/testing/index.js +20 -0
  47. package/lib/adapters/testing/index.js.map +1 -0
  48. package/lib/adapters/testing/mock-connection.d.ts +77 -0
  49. package/lib/adapters/testing/mock-connection.js +207 -0
  50. package/lib/adapters/testing/mock-connection.js.map +1 -0
  51. package/lib/adapters/testing/mock-logger.d.ts +29 -0
  52. package/lib/adapters/testing/mock-logger.js +57 -0
  53. package/lib/adapters/testing/mock-logger.js.map +1 -0
  54. package/lib/adapters/testing/mock-mcp-adapters.d.ts +32 -0
  55. package/lib/adapters/testing/mock-mcp-adapters.js +52 -0
  56. package/lib/adapters/testing/mock-mcp-adapters.js.map +1 -0
  57. package/lib/adapters/testing/mock-oclif-config.d.ts +22 -0
  58. package/lib/adapters/testing/mock-oclif-config.js +90 -0
  59. package/lib/adapters/testing/mock-oclif-config.js.map +1 -0
  60. package/lib/adapters/testing/mock-rest-adapter.d.ts +26 -0
  61. package/lib/adapters/testing/mock-rest-adapter.js +243 -0
  62. package/lib/adapters/testing/mock-rest-adapter.js.map +1 -0
  63. package/lib/adapters/testing/mock-salesforce-connection.d.ts +40 -0
  64. package/lib/adapters/testing/mock-salesforce-connection.js +61 -0
  65. package/lib/adapters/testing/mock-salesforce-connection.js.map +1 -0
  66. package/lib/adapters/testing/mock-soql-adapter.d.ts +30 -0
  67. package/lib/adapters/testing/mock-soql-adapter.js +120 -0
  68. package/lib/adapters/testing/mock-soql-adapter.js.map +1 -0
  69. package/lib/adapters/testing/mock-tooling-adapter.d.ts +24 -0
  70. package/lib/adapters/testing/mock-tooling-adapter.js +163 -0
  71. package/lib/adapters/testing/mock-tooling-adapter.js.map +1 -0
  72. package/lib/adapters/testing/stub-connection.d.ts +93 -0
  73. package/lib/adapters/testing/stub-connection.js +97 -0
  74. package/lib/adapters/testing/stub-connection.js.map +1 -0
  75. package/lib/adapters/testing/stub-rest-adapter.d.ts +52 -0
  76. package/lib/adapters/testing/stub-rest-adapter.js +58 -0
  77. package/lib/adapters/testing/stub-rest-adapter.js.map +1 -0
  78. package/lib/adapters/testing/stub-soql-adapter.d.ts +56 -0
  79. package/lib/adapters/testing/stub-soql-adapter.js +50 -0
  80. package/lib/adapters/testing/stub-soql-adapter.js.map +1 -0
  81. package/lib/adapters/testing/types.d.ts +71 -0
  82. package/lib/adapters/testing/types.js +9 -0
  83. package/lib/adapters/testing/types.js.map +1 -0
  84. package/lib/adapters/tooling/index.d.ts +10 -0
  85. package/lib/adapters/tooling/index.js +17 -0
  86. package/lib/adapters/tooling/index.js.map +1 -0
  87. package/lib/adapters/tooling/tooling-api-adapter.d.ts +157 -0
  88. package/lib/adapters/tooling/tooling-api-adapter.js +339 -0
  89. package/lib/adapters/tooling/tooling-api-adapter.js.map +1 -0
  90. package/lib/adapters/tooling/types.d.ts +81 -0
  91. package/lib/adapters/tooling/types.js +9 -0
  92. package/lib/adapters/tooling/types.js.map +1 -0
  93. package/lib/adapters/types.d.ts +112 -0
  94. package/lib/adapters/types.js +169 -0
  95. package/lib/adapters/types.js.map +1 -0
  96. package/lib/base/cuneiform-command.d.ts +152 -0
  97. package/lib/base/cuneiform-command.js +243 -0
  98. package/lib/base/cuneiform-command.js.map +1 -0
  99. package/lib/commands/cuneiform/compatibility/check.d.ts +43 -0
  100. package/lib/commands/cuneiform/compatibility/check.js +114 -0
  101. package/lib/commands/cuneiform/compatibility/check.js.map +1 -0
  102. package/lib/commands/cuneiform/definition/create.d.ts +119 -0
  103. package/lib/commands/cuneiform/definition/create.js +693 -0
  104. package/lib/commands/cuneiform/definition/create.js.map +1 -0
  105. package/lib/commands/cuneiform/definition/export.d.ts +57 -0
  106. package/lib/commands/cuneiform/definition/export.js +133 -0
  107. package/lib/commands/cuneiform/definition/export.js.map +1 -0
  108. package/lib/commands/cuneiform/definition/get.d.ts +86 -0
  109. package/lib/commands/cuneiform/definition/get.js +270 -0
  110. package/lib/commands/cuneiform/definition/get.js.map +1 -0
  111. package/lib/commands/cuneiform/definition/import.d.ts +54 -0
  112. package/lib/commands/cuneiform/definition/import.js +118 -0
  113. package/lib/commands/cuneiform/definition/import.js.map +1 -0
  114. package/lib/commands/cuneiform/definition/list.d.ts +110 -0
  115. package/lib/commands/cuneiform/definition/list.js +344 -0
  116. package/lib/commands/cuneiform/definition/list.js.map +1 -0
  117. package/lib/commands/cuneiform/definition/purge.d.ts +105 -0
  118. package/lib/commands/cuneiform/definition/purge.js +533 -0
  119. package/lib/commands/cuneiform/definition/purge.js.map +1 -0
  120. package/lib/commands/cuneiform/definition/update.d.ts +58 -0
  121. package/lib/commands/cuneiform/definition/update.js +206 -0
  122. package/lib/commands/cuneiform/definition/update.js.map +1 -0
  123. package/lib/commands/cuneiform/mcp/serve.d.ts +56 -0
  124. package/lib/commands/cuneiform/mcp/serve.js +109 -0
  125. package/lib/commands/cuneiform/mcp/serve.js.map +1 -0
  126. package/lib/commands/cuneiform/object/describe.d.ts +61 -0
  127. package/lib/commands/cuneiform/object/describe.js +461 -0
  128. package/lib/commands/cuneiform/object/describe.js.map +1 -0
  129. package/lib/commands/cuneiform/object/list.d.ts +111 -0
  130. package/lib/commands/cuneiform/object/list.js +239 -0
  131. package/lib/commands/cuneiform/object/list.js.map +1 -0
  132. package/lib/commands/cuneiform/org/details.d.ts +99 -0
  133. package/lib/commands/cuneiform/org/details.js +521 -0
  134. package/lib/commands/cuneiform/org/details.js.map +1 -0
  135. package/lib/commands/cuneiform/org/reset.d.ts +46 -0
  136. package/lib/commands/cuneiform/org/reset.js +135 -0
  137. package/lib/commands/cuneiform/org/reset.js.map +1 -0
  138. package/lib/commands/cuneiform/profile/request/cancel.d.ts +59 -0
  139. package/lib/commands/cuneiform/profile/request/cancel.js +202 -0
  140. package/lib/commands/cuneiform/profile/request/cancel.js.map +1 -0
  141. package/lib/commands/cuneiform/profile/request/delete.d.ts +59 -0
  142. package/lib/commands/cuneiform/profile/request/delete.js +223 -0
  143. package/lib/commands/cuneiform/profile/request/delete.js.map +1 -0
  144. package/lib/commands/cuneiform/profile/request/list.d.ts +35 -0
  145. package/lib/commands/cuneiform/profile/request/list.js +102 -0
  146. package/lib/commands/cuneiform/profile/request/list.js.map +1 -0
  147. package/lib/commands/cuneiform/profile.d.ts +90 -0
  148. package/lib/commands/cuneiform/profile.js +322 -0
  149. package/lib/commands/cuneiform/profile.js.map +1 -0
  150. package/lib/commands/cuneiform/summary/purge.d.ts +77 -0
  151. package/lib/commands/cuneiform/summary/purge.js +429 -0
  152. package/lib/commands/cuneiform/summary/purge.js.map +1 -0
  153. package/lib/commands/cuneiform/summary/reprofile.d.ts +60 -0
  154. package/lib/commands/cuneiform/summary/reprofile.js +236 -0
  155. package/lib/commands/cuneiform/summary/reprofile.js.map +1 -0
  156. package/lib/commands/cuneiform/summary/stop.d.ts +59 -0
  157. package/lib/commands/cuneiform/summary/stop.js +234 -0
  158. package/lib/commands/cuneiform/summary/stop.js.map +1 -0
  159. package/lib/commands/cuneiform/user/details.d.ts +73 -0
  160. package/lib/commands/cuneiform/user/details.js +391 -0
  161. package/lib/commands/cuneiform/user/details.js.map +1 -0
  162. package/lib/constants/index.d.ts +8 -0
  163. package/lib/constants/index.js +16 -0
  164. package/lib/constants/index.js.map +1 -0
  165. package/lib/constants/namespace-constants.d.ts +91 -0
  166. package/lib/constants/namespace-constants.js +211 -0
  167. package/lib/constants/namespace-constants.js.map +1 -0
  168. package/lib/debug/command-debug-proxy.d.ts +101 -0
  169. package/lib/debug/command-debug-proxy.js +171 -0
  170. package/lib/debug/command-debug-proxy.js.map +1 -0
  171. package/lib/debug/debug-logger.d.ts +85 -0
  172. package/lib/debug/debug-logger.js +133 -0
  173. package/lib/debug/debug-logger.js.map +1 -0
  174. package/lib/debug/index.d.ts +12 -0
  175. package/lib/debug/index.js +20 -0
  176. package/lib/debug/index.js.map +1 -0
  177. package/lib/debug/service-debug-proxy.d.ts +30 -0
  178. package/lib/debug/service-debug-proxy.js +102 -0
  179. package/lib/debug/service-debug-proxy.js.map +1 -0
  180. package/lib/hooks/prerun.d.ts +25 -0
  181. package/lib/hooks/prerun.js +47 -0
  182. package/lib/hooks/prerun.js.map +1 -0
  183. package/lib/mcp/config/mcp-config.d.ts +55 -0
  184. package/lib/mcp/config/mcp-config.js +51 -0
  185. package/lib/mcp/config/mcp-config.js.map +1 -0
  186. package/lib/mcp/config/pagination.d.ts +96 -0
  187. package/lib/mcp/config/pagination.js +108 -0
  188. package/lib/mcp/config/pagination.js.map +1 -0
  189. package/lib/mcp/config/system-prompts.d.ts +18 -0
  190. package/lib/mcp/config/system-prompts.js +92 -0
  191. package/lib/mcp/config/system-prompts.js.map +1 -0
  192. package/lib/mcp/errors.d.ts +23 -0
  193. package/lib/mcp/errors.js +27 -0
  194. package/lib/mcp/errors.js.map +1 -0
  195. package/lib/mcp/schemas/input-schemas.d.ts +327 -0
  196. package/lib/mcp/schemas/input-schemas.js +302 -0
  197. package/lib/mcp/schemas/input-schemas.js.map +1 -0
  198. package/lib/mcp/server.d.ts +40 -0
  199. package/lib/mcp/server.js +316 -0
  200. package/lib/mcp/server.js.map +1 -0
  201. package/lib/mcp/tools/contactpoint-tools.d.ts +14 -0
  202. package/lib/mcp/tools/contactpoint-tools.js +34 -0
  203. package/lib/mcp/tools/contactpoint-tools.js.map +1 -0
  204. package/lib/mcp/tools/definition-io-tools.d.ts +19 -0
  205. package/lib/mcp/tools/definition-io-tools.js +152 -0
  206. package/lib/mcp/tools/definition-io-tools.js.map +1 -0
  207. package/lib/mcp/tools/definition-tools.d.ts +51 -0
  208. package/lib/mcp/tools/definition-tools.js +199 -0
  209. package/lib/mcp/tools/definition-tools.js.map +1 -0
  210. package/lib/mcp/tools/index.d.ts +37 -0
  211. package/lib/mcp/tools/index.js +88 -0
  212. package/lib/mcp/tools/index.js.map +1 -0
  213. package/lib/mcp/tools/object-tools.d.ts +22 -0
  214. package/lib/mcp/tools/object-tools.js +306 -0
  215. package/lib/mcp/tools/object-tools.js.map +1 -0
  216. package/lib/mcp/tools/org-tools.d.ts +14 -0
  217. package/lib/mcp/tools/org-tools.js +177 -0
  218. package/lib/mcp/tools/org-tools.js.map +1 -0
  219. package/lib/mcp/tools/profile-tools.d.ts +59 -0
  220. package/lib/mcp/tools/profile-tools.js +213 -0
  221. package/lib/mcp/tools/profile-tools.js.map +1 -0
  222. package/lib/mcp/tools/summary-tools.d.ts +14 -0
  223. package/lib/mcp/tools/summary-tools.js +38 -0
  224. package/lib/mcp/tools/summary-tools.js.map +1 -0
  225. package/lib/mcp/tools/tool-factory.d.ts +63 -0
  226. package/lib/mcp/tools/tool-factory.js +146 -0
  227. package/lib/mcp/tools/tool-factory.js.map +1 -0
  228. package/lib/mcp/tools/user-tools.d.ts +25 -0
  229. package/lib/mcp/tools/user-tools.js +167 -0
  230. package/lib/mcp/tools/user-tools.js.map +1 -0
  231. package/lib/models/date-literal.d.ts +211 -0
  232. package/lib/models/date-literal.js +615 -0
  233. package/lib/models/date-literal.js.map +1 -0
  234. package/lib/models/object-describe-types.d.ts +173 -0
  235. package/lib/models/object-describe-types.js +9 -0
  236. package/lib/models/object-describe-types.js.map +1 -0
  237. package/lib/models/profile-request-types.d.ts +118 -0
  238. package/lib/models/profile-request-types.js +23 -0
  239. package/lib/models/profile-request-types.js.map +1 -0
  240. package/lib/models/profiling-execution-types.d.ts +154 -0
  241. package/lib/models/profiling-execution-types.js +14 -0
  242. package/lib/models/profiling-execution-types.js.map +1 -0
  243. package/lib/models/service-result.d.ts +114 -0
  244. package/lib/models/service-result.js +81 -0
  245. package/lib/models/service-result.js.map +1 -0
  246. package/lib/models/sfdmu-types.d.ts +53 -0
  247. package/lib/models/sfdmu-types.js +23 -0
  248. package/lib/models/sfdmu-types.js.map +1 -0
  249. package/lib/models/status-types.d.ts +38 -0
  250. package/lib/models/status-types.js +12 -0
  251. package/lib/models/status-types.js.map +1 -0
  252. package/lib/models/summary-bulk-types.d.ts +61 -0
  253. package/lib/models/summary-bulk-types.js +23 -0
  254. package/lib/models/summary-bulk-types.js.map +1 -0
  255. package/lib/models/user-details-types.d.ts +163 -0
  256. package/lib/models/user-details-types.js +9 -0
  257. package/lib/models/user-details-types.js.map +1 -0
  258. package/lib/models/year-range.d.ts +78 -0
  259. package/lib/models/year-range.js +153 -0
  260. package/lib/models/year-range.js.map +1 -0
  261. package/lib/operations/CompatibilityCheckOperation.d.ts +62 -0
  262. package/lib/operations/CompatibilityCheckOperation.js +102 -0
  263. package/lib/operations/CompatibilityCheckOperation.js.map +1 -0
  264. package/lib/operations/DefinitionCreateOperation.d.ts +411 -0
  265. package/lib/operations/DefinitionCreateOperation.js +1121 -0
  266. package/lib/operations/DefinitionCreateOperation.js.map +1 -0
  267. package/lib/operations/DefinitionExportOperation.d.ts +155 -0
  268. package/lib/operations/DefinitionExportOperation.js +281 -0
  269. package/lib/operations/DefinitionExportOperation.js.map +1 -0
  270. package/lib/operations/DefinitionImportOperation.d.ts +144 -0
  271. package/lib/operations/DefinitionImportOperation.js +357 -0
  272. package/lib/operations/DefinitionImportOperation.js.map +1 -0
  273. package/lib/operations/DefinitionListOperation.d.ts +66 -0
  274. package/lib/operations/DefinitionListOperation.js +108 -0
  275. package/lib/operations/DefinitionListOperation.js.map +1 -0
  276. package/lib/operations/DefinitionPurgeOperation.d.ts +199 -0
  277. package/lib/operations/DefinitionPurgeOperation.js +465 -0
  278. package/lib/operations/DefinitionPurgeOperation.js.map +1 -0
  279. package/lib/operations/DefinitionUpdateOperation.d.ts +78 -0
  280. package/lib/operations/DefinitionUpdateOperation.js +142 -0
  281. package/lib/operations/DefinitionUpdateOperation.js.map +1 -0
  282. package/lib/operations/OrgDetailsOperation.d.ts +253 -0
  283. package/lib/operations/OrgDetailsOperation.js +456 -0
  284. package/lib/operations/OrgDetailsOperation.js.map +1 -0
  285. package/lib/operations/OrgResetOperation.d.ts +114 -0
  286. package/lib/operations/OrgResetOperation.js +209 -0
  287. package/lib/operations/OrgResetOperation.js.map +1 -0
  288. package/lib/operations/ProfileOperation.d.ts +187 -0
  289. package/lib/operations/ProfileOperation.js +373 -0
  290. package/lib/operations/ProfileOperation.js.map +1 -0
  291. package/lib/operations/ProfileRequestCancelOperation.d.ts +59 -0
  292. package/lib/operations/ProfileRequestCancelOperation.js +137 -0
  293. package/lib/operations/ProfileRequestCancelOperation.js.map +1 -0
  294. package/lib/operations/ProfileRequestDeleteOperation.d.ts +64 -0
  295. package/lib/operations/ProfileRequestDeleteOperation.js +134 -0
  296. package/lib/operations/ProfileRequestDeleteOperation.js.map +1 -0
  297. package/lib/operations/ProfileRequestListOperation.d.ts +39 -0
  298. package/lib/operations/ProfileRequestListOperation.js +61 -0
  299. package/lib/operations/ProfileRequestListOperation.js.map +1 -0
  300. package/lib/operations/SummaryPurgeOperation.d.ts +134 -0
  301. package/lib/operations/SummaryPurgeOperation.js +257 -0
  302. package/lib/operations/SummaryPurgeOperation.js.map +1 -0
  303. package/lib/operations/SummaryReprofileOperation.d.ts +88 -0
  304. package/lib/operations/SummaryReprofileOperation.js +174 -0
  305. package/lib/operations/SummaryReprofileOperation.js.map +1 -0
  306. package/lib/operations/SummaryStopOperation.d.ts +87 -0
  307. package/lib/operations/SummaryStopOperation.js +175 -0
  308. package/lib/operations/SummaryStopOperation.js.map +1 -0
  309. package/lib/services/BulkExecutionService.d.ts +120 -0
  310. package/lib/services/BulkExecutionService.js +535 -0
  311. package/lib/services/BulkExecutionService.js.map +1 -0
  312. package/lib/services/CompatibilityService.d.ts +81 -0
  313. package/lib/services/CompatibilityService.js +118 -0
  314. package/lib/services/CompatibilityService.js.map +1 -0
  315. package/lib/services/ConfigureMode.d.ts +85 -0
  316. package/lib/services/ConfigureMode.js +390 -0
  317. package/lib/services/ConfigureMode.js.map +1 -0
  318. package/lib/services/ContactPointService.d.ts +111 -0
  319. package/lib/services/ContactPointService.js +286 -0
  320. package/lib/services/ContactPointService.js.map +1 -0
  321. package/lib/services/DataAvailabilityService.d.ts +81 -0
  322. package/lib/services/DataAvailabilityService.js +128 -0
  323. package/lib/services/DataAvailabilityService.js.map +1 -0
  324. package/lib/services/DefinitionFieldGenerationService.d.ts +309 -0
  325. package/lib/services/DefinitionFieldGenerationService.js +795 -0
  326. package/lib/services/DefinitionFieldGenerationService.js.map +1 -0
  327. package/lib/services/DefinitionQueryBuilder.d.ts +59 -0
  328. package/lib/services/DefinitionQueryBuilder.js +234 -0
  329. package/lib/services/DefinitionQueryBuilder.js.map +1 -0
  330. package/lib/services/ObjectDescribeService.d.ts +436 -0
  331. package/lib/services/ObjectDescribeService.js +869 -0
  332. package/lib/services/ObjectDescribeService.js.map +1 -0
  333. package/lib/services/ObjectFilteringService.d.ts +400 -0
  334. package/lib/services/ObjectFilteringService.js +878 -0
  335. package/lib/services/ObjectFilteringService.js.map +1 -0
  336. package/lib/services/ObjectListCommandService.d.ts +429 -0
  337. package/lib/services/ObjectListCommandService.js +873 -0
  338. package/lib/services/ObjectListCommandService.js.map +1 -0
  339. package/lib/services/ObjectListService.d.ts +201 -0
  340. package/lib/services/ObjectListService.js +345 -0
  341. package/lib/services/ObjectListService.js.map +1 -0
  342. package/lib/services/OrgInfoService.d.ts +485 -0
  343. package/lib/services/OrgInfoService.js +1122 -0
  344. package/lib/services/OrgInfoService.js.map +1 -0
  345. package/lib/services/PollingService.d.ts +105 -0
  346. package/lib/services/PollingService.js +117 -0
  347. package/lib/services/PollingService.js.map +1 -0
  348. package/lib/services/ProfileRequestService.d.ts +186 -0
  349. package/lib/services/ProfileRequestService.js +555 -0
  350. package/lib/services/ProfileRequestService.js.map +1 -0
  351. package/lib/services/ProfilingDefinitionService.d.ts +535 -0
  352. package/lib/services/ProfilingDefinitionService.js +981 -0
  353. package/lib/services/ProfilingDefinitionService.js.map +1 -0
  354. package/lib/services/ProfilingExecutionService.d.ts +122 -0
  355. package/lib/services/ProfilingExecutionService.js +320 -0
  356. package/lib/services/ProfilingExecutionService.js.map +1 -0
  357. package/lib/services/ProfilingSummaryService.d.ts +292 -0
  358. package/lib/services/ProfilingSummaryService.js +685 -0
  359. package/lib/services/ProfilingSummaryService.js.map +1 -0
  360. package/lib/services/RecordTypeService.d.ts +129 -0
  361. package/lib/services/RecordTypeService.js +284 -0
  362. package/lib/services/RecordTypeService.js.map +1 -0
  363. package/lib/services/SFDMUService.d.ts +133 -0
  364. package/lib/services/SFDMUService.js +295 -0
  365. package/lib/services/SFDMUService.js.map +1 -0
  366. package/lib/services/TabDetectionService.d.ts +105 -0
  367. package/lib/services/TabDetectionService.js +206 -0
  368. package/lib/services/TabDetectionService.js.map +1 -0
  369. package/lib/services/UnconfigureMode.d.ts +74 -0
  370. package/lib/services/UnconfigureMode.js +378 -0
  371. package/lib/services/UnconfigureMode.js.map +1 -0
  372. package/lib/services/UserConfigurationService.d.ts +155 -0
  373. package/lib/services/UserConfigurationService.js +573 -0
  374. package/lib/services/UserConfigurationService.js.map +1 -0
  375. package/lib/services/UserConfigurationTypes.d.ts +181 -0
  376. package/lib/services/UserConfigurationTypes.js +14 -0
  377. package/lib/services/UserConfigurationTypes.js.map +1 -0
  378. package/lib/services/UserReadinessService.d.ts +330 -0
  379. package/lib/services/UserReadinessService.js +831 -0
  380. package/lib/services/UserReadinessService.js.map +1 -0
  381. package/lib/services/constants.d.ts +53 -0
  382. package/lib/services/constants.js +71 -0
  383. package/lib/services/constants.js.map +1 -0
  384. package/lib/services/namespace-constants.d.ts +1 -0
  385. package/lib/services/namespace-constants.js +11 -0
  386. package/lib/services/namespace-constants.js.map +1 -0
  387. package/lib/services/validation.d.ts +47 -0
  388. package/lib/services/validation.js +119 -0
  389. package/lib/services/validation.js.map +1 -0
  390. package/lib/utils/batch-processor.d.ts +13 -0
  391. package/lib/utils/batch-processor.js +39 -0
  392. package/lib/utils/batch-processor.js.map +1 -0
  393. package/lib/utils/formatting/availability-grid.d.ts +81 -0
  394. package/lib/utils/formatting/availability-grid.js +94 -0
  395. package/lib/utils/formatting/availability-grid.js.map +1 -0
  396. package/lib/utils/formatting/business-process-grid.d.ts +51 -0
  397. package/lib/utils/formatting/business-process-grid.js +58 -0
  398. package/lib/utils/formatting/business-process-grid.js.map +1 -0
  399. package/lib/utils/formatting/command-display.d.ts +154 -0
  400. package/lib/utils/formatting/command-display.js +154 -0
  401. package/lib/utils/formatting/command-display.js.map +1 -0
  402. package/lib/utils/formatting/definition-create-display.d.ts +118 -0
  403. package/lib/utils/formatting/definition-create-display.js +231 -0
  404. package/lib/utils/formatting/definition-create-display.js.map +1 -0
  405. package/lib/utils/formatting/empty-states.d.ts +35 -0
  406. package/lib/utils/formatting/empty-states.js +70 -0
  407. package/lib/utils/formatting/empty-states.js.map +1 -0
  408. package/lib/utils/formatting/errors.d.ts +33 -0
  409. package/lib/utils/formatting/errors.js +72 -0
  410. package/lib/utils/formatting/errors.js.map +1 -0
  411. package/lib/utils/formatting/field-types.d.ts +32 -0
  412. package/lib/utils/formatting/field-types.js +88 -0
  413. package/lib/utils/formatting/field-types.js.map +1 -0
  414. package/lib/utils/formatting/index.d.ts +29 -0
  415. package/lib/utils/formatting/index.js +28 -0
  416. package/lib/utils/formatting/index.js.map +1 -0
  417. package/lib/utils/formatting/indicators.d.ts +113 -0
  418. package/lib/utils/formatting/indicators.js +161 -0
  419. package/lib/utils/formatting/indicators.js.map +1 -0
  420. package/lib/utils/formatting/loading-messages.d.ts +37 -0
  421. package/lib/utils/formatting/loading-messages.js +50 -0
  422. package/lib/utils/formatting/loading-messages.js.map +1 -0
  423. package/lib/utils/formatting/namespace-display.d.ts +31 -0
  424. package/lib/utils/formatting/namespace-display.js +64 -0
  425. package/lib/utils/formatting/namespace-display.js.map +1 -0
  426. package/lib/utils/formatting/numbers.d.ts +73 -0
  427. package/lib/utils/formatting/numbers.js +187 -0
  428. package/lib/utils/formatting/numbers.js.map +1 -0
  429. package/lib/utils/formatting/object-describe-display.d.ts +114 -0
  430. package/lib/utils/formatting/object-describe-display.js +440 -0
  431. package/lib/utils/formatting/object-describe-display.js.map +1 -0
  432. package/lib/utils/formatting/object-list-display.d.ts +213 -0
  433. package/lib/utils/formatting/object-list-display.js +672 -0
  434. package/lib/utils/formatting/object-list-display.js.map +1 -0
  435. package/lib/utils/formatting/org-identity.d.ts +15 -0
  436. package/lib/utils/formatting/org-identity.js +28 -0
  437. package/lib/utils/formatting/org-identity.js.map +1 -0
  438. package/lib/utils/formatting/record-age-grid.d.ts +41 -0
  439. package/lib/utils/formatting/record-age-grid.js +56 -0
  440. package/lib/utils/formatting/record-age-grid.js.map +1 -0
  441. package/lib/utils/formatting/sections.d.ts +108 -0
  442. package/lib/utils/formatting/sections.js +150 -0
  443. package/lib/utils/formatting/sections.js.map +1 -0
  444. package/lib/utils/formatting/tables.d.ts +90 -0
  445. package/lib/utils/formatting/tables.js +113 -0
  446. package/lib/utils/formatting/tables.js.map +1 -0
  447. package/lib/utils/formatting/user-details-display.d.ts +101 -0
  448. package/lib/utils/formatting/user-details-display.js +425 -0
  449. package/lib/utils/formatting/user-details-display.js.map +1 -0
  450. package/lib/utils/pagination/index.d.ts +11 -0
  451. package/lib/utils/pagination/index.js +18 -0
  452. package/lib/utils/pagination/index.js.map +1 -0
  453. package/lib/utils/pagination/keypress-reader.d.ts +20 -0
  454. package/lib/utils/pagination/keypress-reader.js +63 -0
  455. package/lib/utils/pagination/keypress-reader.js.map +1 -0
  456. package/lib/utils/pagination/paginate-output.d.ts +48 -0
  457. package/lib/utils/pagination/paginate-output.js +136 -0
  458. package/lib/utils/pagination/paginate-output.js.map +1 -0
  459. package/messages/compatibility.check.md +71 -0
  460. package/messages/cuneiform.access.md +138 -0
  461. package/messages/definition.create.md +511 -0
  462. package/messages/definition.export.md +84 -0
  463. package/messages/definition.get.md +147 -0
  464. package/messages/definition.import.md +65 -0
  465. package/messages/definition.list.md +264 -0
  466. package/messages/definition.purge.md +318 -0
  467. package/messages/definition.update.md +118 -0
  468. package/messages/mcp.serve.md +66 -0
  469. package/messages/object.describe.md +201 -0
  470. package/messages/object.list.md +443 -0
  471. package/messages/org.details.md +386 -0
  472. package/messages/org.reset.md +71 -0
  473. package/messages/profile.md +231 -0
  474. package/messages/profile.request.cancel.md +143 -0
  475. package/messages/profile.request.delete.md +139 -0
  476. package/messages/profile.request.list.md +89 -0
  477. package/messages/summary.purge.md +218 -0
  478. package/messages/summary.reprofile.md +150 -0
  479. package/messages/summary.stop.md +157 -0
  480. package/messages/user.details.md +501 -0
  481. package/oclif.lock +2887 -2149
  482. package/oclif.manifest.json +2813 -31
  483. package/package.json +94 -19
  484. package/lib/commands/cuneiform/about.d.ts +0 -13
  485. package/lib/commands/cuneiform/about.js +0 -26
  486. package/lib/commands/cuneiform/about.js.map +0 -1
  487. package/lib/commands/hello/world.d.ts +0 -14
  488. package/lib/commands/hello/world.js +0 -27
  489. package/lib/commands/hello/world.js.map +0 -1
  490. package/lib/index.d.ts +0 -2
  491. package/lib/index.js +0 -2
  492. package/lib/index.js.map +0 -1
  493. package/messages/cuneiform.about.md +0 -19
  494. package/messages/hello.world.md +0 -29
@@ -0,0 +1,547 @@
1
+ /**
2
+ * Error codes and utilities for Salesforce API adapter operations.
3
+ *
4
+ * This module provides standardized error codes for all adapter operations,
5
+ * utilities for extracting Salesforce error codes from various error formats,
6
+ * and human-readable descriptions for error messages.
7
+ *
8
+ * @module adapters/errors
9
+ *
10
+ * @example
11
+ * ```typescript
12
+ * import { AdapterErrorCodes, mapSalesforceError, extractSalesforceErrorCode } from './errors';
13
+ *
14
+ * try {
15
+ * await connection.query('INVALID SOQL');
16
+ * } catch (error) {
17
+ * const sfCode = extractSalesforceErrorCode(error);
18
+ * const adapterCode = sfCode ? mapSalesforceError(sfCode, 'soql') : AdapterErrorCodes.QUERY_FAILED;
19
+ * console.log(`Error: ${adapterCode}`); // E3102 for INVALID_QUERY
20
+ * }
21
+ * ```
22
+ */
23
+ /**
24
+ * Adapter error codes for Salesforce API operations.
25
+ * Uses the 3000-3999 range as defined in CLAUDE.md error code ranges.
26
+ *
27
+ * Error Code Ranges:
28
+ * - E3000-E3099: Connection errors
29
+ * - E3100-E3199: SOQL query errors
30
+ * - E3200-E3299: REST API errors
31
+ * - E3300-E3399: Tooling API errors
32
+ * - E3400-E3499: (Reserved — formerly Apex execution errors)
33
+ */
34
+ export declare const AdapterErrorCodes: {
35
+ /** Connection is not authenticated or has expired */
36
+ readonly CONNECTION_NOT_AUTHENTICATED: "E3000";
37
+ /** Connection is missing required configuration */
38
+ readonly CONNECTION_INVALID: "E3001";
39
+ /** Generic SOQL query failure */
40
+ readonly QUERY_FAILED: "E3100";
41
+ /** Query execution timed out */
42
+ readonly QUERY_TIMEOUT: "E3101";
43
+ /** Invalid SOQL syntax */
44
+ readonly INVALID_QUERY: "E3102";
45
+ /** Query returned too many rows */
46
+ readonly QUERY_TOO_MANY_ROWS: "E3103";
47
+ /** Generic REST API describe failure */
48
+ readonly DESCRIBE_FAILED: "E3200";
49
+ /** Object not found */
50
+ readonly OBJECT_NOT_FOUND: "E3201";
51
+ /** Insufficient permissions to access object */
52
+ readonly PERMISSION_DENIED: "E3202";
53
+ /** Global describe failed */
54
+ readonly GLOBAL_DESCRIBE_FAILED: "E3203";
55
+ /** Insert record operation failed */
56
+ readonly INSERT_RECORD_FAILED: "E3204";
57
+ /** Insufficient access to insert record */
58
+ readonly INSERT_INSUFFICIENT_ACCESS: "E3205";
59
+ /** Duplicate record detected during insert */
60
+ readonly INSERT_DUPLICATE_VALUE: "E3206";
61
+ /** Update record operation failed */
62
+ readonly UPDATE_RECORD_FAILED: "E3207";
63
+ /** Insufficient access to update record */
64
+ readonly UPDATE_INSUFFICIENT_ACCESS: "E3208";
65
+ /** Record not found for update */
66
+ readonly UPDATE_RECORD_NOT_FOUND: "E3209";
67
+ /** Delete record operation failed */
68
+ readonly DELETE_RECORD_FAILED: "E3210";
69
+ /** Insufficient access to delete record */
70
+ readonly DELETE_INSUFFICIENT_ACCESS: "E3211";
71
+ /** Record not found for delete */
72
+ readonly DELETE_RECORD_NOT_FOUND: "E3212";
73
+ /** Generic REST request failed */
74
+ readonly REQUEST_FAILED: "E3213";
75
+ /** Insert blocked: object must use pnova__ namespace or be in the explicit allowlist */
76
+ readonly INSERT_NAMESPACE_VIOLATION: "E3220";
77
+ /** Update blocked: object must use pnova__ namespace */
78
+ readonly UPDATE_NAMESPACE_VIOLATION: "E3221";
79
+ /** Delete blocked: object must use pnova__ namespace */
80
+ readonly DELETE_NAMESPACE_VIOLATION: "E3222";
81
+ /** Generic Tooling API query failure */
82
+ readonly TOOLING_QUERY_FAILED: "E3300";
83
+ /** Metadata not found */
84
+ readonly METADATA_NOT_FOUND: "E3301";
85
+ /** Tooling API access denied */
86
+ readonly TOOLING_ACCESS_DENIED: "E3302";
87
+ };
88
+ /**
89
+ * Service error codes for domain service operations.
90
+ * Uses the 4000-4999 range as defined in CLAUDE.md error code ranges.
91
+ *
92
+ * Error Code Ranges:
93
+ * - E4001: General pagination error
94
+ * - E4100-E4105: ObjectFilteringService
95
+ * - E4200-E4203: RecordTypeService
96
+ * - E4300-E4302: TabDetectionService
97
+ * - E4400-E4409: ProfilingDefinitionService
98
+ * - E4500-E4506: ProfilingSummaryService
99
+ * - E4600-E4610: OrgInfoService
100
+ * - E4650-E4658: UserReadinessService
101
+ * - E4660-E4676: UserConfigurationService (includes REST insert/endpoint errors E4671-E4676)
102
+ * - E4680-E4681: Feature Gate (access gate pre-check)
103
+ * - E4700-E4702: ContactPointService
104
+ * - E4750-E4761: ObjectListService
105
+ * - E4800-E4809: ObjectDescribeService
106
+ * - E4850-E4866: ProfilingExecutionService
107
+ * - E4900-E4909: ProfileRequestService
108
+ * - E4920-E4929: DataAvailabilityService
109
+ */
110
+ export declare const ServiceErrorCodes: {
111
+ /** Invalid pagination parameters (limit, offset) */
112
+ readonly INVALID_PAGINATION: "E4001";
113
+ /** Generic filter operation failed */
114
+ readonly FILTER_FAILED: "E4100";
115
+ /** Invalid type parameter (must be 'standard', 'custom', or 'all') */
116
+ readonly INVALID_TYPE: "E4101";
117
+ /** Invalid namespace format */
118
+ readonly INVALID_NAMESPACE: "E4102";
119
+ /** Invalid name filter (value required, operator must be 'startsWith', 'contains', or 'equals') */
120
+ readonly INVALID_NAME_FILTER: "E4103";
121
+ /** Invalid classification (must be 'customer', 'internal', or 'all') */
122
+ readonly INVALID_CLASSIFICATION: "E4104";
123
+ /** Invalid objectNames array (required, non-empty, max 200 items) */
124
+ readonly INVALID_OBJECT_NAMES: "E4105";
125
+ /** Record type query failed */
126
+ readonly RECORD_TYPE_QUERY_FAILED: "E4200";
127
+ /** Object not found for record type query */
128
+ readonly RECORD_TYPE_OBJECT_NOT_FOUND: "E4201";
129
+ /** Object name is required */
130
+ readonly RECORD_TYPE_OBJECT_NAME_REQUIRED: "E4202";
131
+ /** Invalid object name format */
132
+ readonly RECORD_TYPE_INVALID_OBJECT_NAME: "E4203";
133
+ /** Tab query failed */
134
+ readonly TAB_QUERY_FAILED: "E4300";
135
+ /** Object name is required */
136
+ readonly TAB_OBJECT_NAME_REQUIRED: "E4301";
137
+ /** Invalid object names array (empty or exceeds max) */
138
+ readonly TAB_INVALID_OBJECT_NAMES: "E4302";
139
+ /** Definition query failed */
140
+ readonly DEFINITION_QUERY_FAILED: "E4400";
141
+ /** Definition not found */
142
+ readonly DEFINITION_NOT_FOUND: "E4401";
143
+ /** Definition create failed */
144
+ readonly DEFINITION_CREATE_FAILED: "E4402";
145
+ /** Definition update failed */
146
+ readonly DEFINITION_UPDATE_FAILED: "E4403";
147
+ /** Definition delete failed */
148
+ readonly DEFINITION_DELETE_FAILED: "E4404";
149
+ /** Invalid Salesforce ID format */
150
+ readonly DEFINITION_INVALID_ID: "E4405";
151
+ /** Invalid definition name (required, 1-80 chars) */
152
+ readonly DEFINITION_INVALID_NAME: "E4406";
153
+ /** Invalid object API name */
154
+ readonly DEFINITION_INVALID_OBJECT_NAME: "E4407";
155
+ /** Invalid category (max 255 chars) */
156
+ readonly DEFINITION_INVALID_CATEGORY: "E4408";
157
+ /** Update requires at least one field */
158
+ readonly DEFINITION_UPDATE_EMPTY: "E4409";
159
+ /** Summary query failed */
160
+ readonly SUMMARY_QUERY_FAILED: "E4500";
161
+ /** Summary not found */
162
+ readonly SUMMARY_NOT_FOUND: "E4501";
163
+ /** Summary delete failed */
164
+ readonly SUMMARY_DELETE_FAILED: "E4502";
165
+ /** Invalid definition ID format (for getSummaries definitionId parameter) */
166
+ readonly SUMMARY_INVALID_DEFINITION_ID: "E4503";
167
+ /** Invalid summary IDs array (empty or exceeds max) */
168
+ readonly SUMMARY_INVALID_IDS: "E4504";
169
+ /** Invalid summary ID format (for getSummaryById id parameter) */
170
+ readonly SUMMARY_INVALID_ID: "E4505";
171
+ /** Profiled objects query failed */
172
+ readonly PROFILED_OBJECTS_QUERY_FAILED: "E4506";
173
+ /** No selection criteria specified for purge */
174
+ readonly SUMMARY_PURGE_NO_SELECTION: "E4510";
175
+ /** Mutually exclusive flags used (--ids with filters) */
176
+ readonly SUMMARY_PURGE_MUTUALLY_EXCLUSIVE: "E4511";
177
+ /** Summary purge query failed */
178
+ readonly SUMMARY_PURGE_QUERY_FAILED: "E4512";
179
+ /** No eligible summaries found */
180
+ readonly SUMMARY_PURGE_NO_ELIGIBLE: "E4513";
181
+ /** Summary purge delete failed */
182
+ readonly SUMMARY_PURGE_DELETE_FAILED: "E4514";
183
+ /** User cancelled purge operation */
184
+ readonly SUMMARY_PURGE_USER_CANCELLED: "E4515";
185
+ /** Unexpected operation failure */
186
+ readonly SUMMARY_PURGE_OPERATION_FAILED: "E4516";
187
+ /** Invalid summary IDs provided */
188
+ readonly SUMMARY_PURGE_INVALID_IDS: "E4517";
189
+ /** No selection criteria specified for stop */
190
+ readonly SUMMARY_STOP_NO_SELECTION: "E4520";
191
+ /** Mutually exclusive flags used for stop */
192
+ readonly SUMMARY_STOP_MUTUALLY_EXCLUSIVE: "E4521";
193
+ /** Summary stop query failed */
194
+ readonly SUMMARY_STOP_QUERY_FAILED: "E4522";
195
+ /** No stoppable summaries found */
196
+ readonly SUMMARY_STOP_NO_ELIGIBLE: "E4523";
197
+ /** Summary stop REST call failed */
198
+ readonly SUMMARY_STOP_FAILED: "E4524";
199
+ /** User cancelled stop operation */
200
+ readonly SUMMARY_STOP_USER_CANCELLED: "E4525";
201
+ /** Unexpected stop operation failure */
202
+ readonly SUMMARY_STOP_OPERATION_FAILED: "E4526";
203
+ /** Invalid summary IDs for stop */
204
+ readonly SUMMARY_STOP_INVALID_IDS: "E4527";
205
+ /** No selection criteria specified for reprofile */
206
+ readonly SUMMARY_REPROFILE_NO_SELECTION: "E4530";
207
+ /** Mutually exclusive flags used for reprofile */
208
+ readonly SUMMARY_REPROFILE_MUTUALLY_EXCLUSIVE: "E4531";
209
+ /** Summary reprofile query failed */
210
+ readonly SUMMARY_REPROFILE_QUERY_FAILED: "E4532";
211
+ /** No reprofilable summaries found */
212
+ readonly SUMMARY_REPROFILE_NO_ELIGIBLE: "E4533";
213
+ /** Summary reprofile REST call failed */
214
+ readonly SUMMARY_REPROFILE_FAILED: "E4534";
215
+ /** User cancelled reprofile operation */
216
+ readonly SUMMARY_REPROFILE_USER_CANCELLED: "E4535";
217
+ /** Unexpected reprofile operation failure */
218
+ readonly SUMMARY_REPROFILE_OPERATION_FAILED: "E4536";
219
+ /** Invalid summary IDs for reprofile */
220
+ readonly SUMMARY_REPROFILE_INVALID_IDS: "E4537";
221
+ /** Contact point analysis failed */
222
+ readonly CONTACT_POINT_ANALYSIS_FAILED: "E4700";
223
+ /** Object name is required */
224
+ readonly CONTACT_POINT_OBJECT_NAME_REQUIRED: "E4701";
225
+ /** Invalid object name format */
226
+ readonly CONTACT_POINT_INVALID_OBJECT_NAME: "E4702";
227
+ /** Object list query failed */
228
+ readonly OBJECT_LIST_QUERY_FAILED: "E4750";
229
+ /** Global describe failed during object list operation */
230
+ readonly OBJECT_LIST_GLOBAL_DESCRIBE_FAILED: "E4751";
231
+ /** Invalid pagination parameters for object list */
232
+ readonly OBJECT_LIST_INVALID_PAGINATION: "E4752";
233
+ /** Object list filter failed */
234
+ readonly OBJECT_LIST_FILTER_FAILED: "E4753";
235
+ /** Tab detection failed during enrichment */
236
+ readonly OBJECT_LIST_TAB_DETECTION_FAILED: "E4754";
237
+ /** Contact point analysis failed during enrichment */
238
+ readonly OBJECT_LIST_CONTACT_POINT_FAILED: "E4755";
239
+ /** Enrichment operation timed out */
240
+ readonly OBJECT_LIST_ENRICHMENT_TIMEOUT: "E4756";
241
+ /** Invalid sort field or direction */
242
+ readonly OBJECT_LIST_INVALID_SORT: "E4757";
243
+ /** Invalid filter type */
244
+ readonly OBJECT_LIST_INVALID_FILTER_TYPE: "E4758";
245
+ /** Invalid namespace in filter */
246
+ readonly OBJECT_LIST_INVALID_NAMESPACE: "E4759";
247
+ /** Failed to get record count */
248
+ readonly OBJECT_LIST_RECORD_COUNT_FAILED: "E4760";
249
+ /** Empty result set */
250
+ readonly OBJECT_LIST_EMPTY_RESULT: "E4761";
251
+ /** Org info query failed */
252
+ readonly ORG_INFO_QUERY_FAILED: "E4600";
253
+ /** Org identity failed */
254
+ readonly ORG_IDENTITY_FAILED: "E4601";
255
+ /** Org limits failed */
256
+ readonly ORG_LIMITS_FAILED: "E4602";
257
+ /** Org package query failed */
258
+ readonly ORG_PACKAGE_QUERY_FAILED: "E4603";
259
+ /** Org namespace query failed */
260
+ readonly ORG_NAMESPACE_QUERY_FAILED: "E4604";
261
+ /** Org user count failed */
262
+ readonly ORG_USER_COUNT_FAILED: "E4605";
263
+ /** Org Cuneiform version query failed */
264
+ readonly ORG_CUNEIFORM_VERSION_FAILED: "E4606";
265
+ /** Org features query failed */
266
+ readonly ORG_FEATURES_QUERY_FAILED: "E4607";
267
+ /** Org edition query failed */
268
+ readonly ORG_EDITION_QUERY_FAILED: "E4608";
269
+ /** Business process query failed */
270
+ readonly ORG_BUSINESS_PROCESS_QUERY_FAILED: "E4609";
271
+ /** User readiness query failed */
272
+ readonly USER_READINESS_QUERY_FAILED: "E4650";
273
+ /** User permission set check failed */
274
+ readonly USER_PERMISSION_SET_CHECK_FAILED: "E4651";
275
+ /** User config profile check failed */
276
+ readonly USER_CONFIG_PROFILE_CHECK_FAILED: "E4652";
277
+ /** User ID is required */
278
+ readonly USER_ID_REQUIRED: "E4653";
279
+ /** Cuneiform namespace not found (not installed) */
280
+ readonly USER_CUNEIFORM_NAMESPACE_NOT_FOUND: "E4654";
281
+ /** User info query failed */
282
+ readonly USER_INFO_QUERY_FAILED: "E4655";
283
+ /** User lacks required permission sets for profiling access */
284
+ readonly PROFILING_ACCESS_DENIED: "E4656";
285
+ /** Global Profiling is not enabled in the org */
286
+ readonly GLOBAL_PROFILING_NOT_ENABLED: "E4657";
287
+ /** Configure operation blocked in production environment */
288
+ readonly ENVIRONMENT_CONFIGURE_BLOCKED: "E4658";
289
+ /** CLI self-provisioning not enabled in Configuration Profile */
290
+ readonly SELF_REGISTRATION_NOT_ENABLED: "E4659";
291
+ /** User ID is required for configuration query */
292
+ readonly USER_CONFIG_USER_ID_REQUIRED: "E4660";
293
+ /** User configuration query failed */
294
+ readonly USER_CONFIG_QUERY_FAILED: "E4661";
295
+ /** Invalid user configuration settings */
296
+ readonly USER_CONFIG_INVALID_SETTINGS: "E4662";
297
+ /** CMT deployment via REST endpoint failed */
298
+ readonly USER_CONFIG_DEPLOY_TRIGGER_FAILED: "E4663";
299
+ /** Background job query failed */
300
+ readonly USER_CONFIG_JOB_QUERY_FAILED: "E4665";
301
+ /** Permission set not found in org */
302
+ readonly USER_CONFIG_PERMISSION_SET_NOT_FOUND: "E4666";
303
+ /** Permission set assignment failed */
304
+ readonly USER_CONFIG_PERMISSION_SET_ASSIGN_FAILED: "E4667";
305
+ /** Insufficient access to assign permission sets */
306
+ readonly USER_CONFIG_INSUFFICIENT_ACCESS: "E4668";
307
+ /** Some configuration actions failed (partial failure) */
308
+ readonly USER_CONFIG_PARTIAL_FAILURE: "E4669";
309
+ /** Already configured, no changes needed */
310
+ readonly USER_CONFIG_ALREADY_CONFIGURED: "E4670";
311
+ /** sObject insert failed via REST API */
312
+ readonly REST_INSERT_FAILED: "E4671";
313
+ /** Insufficient access to insert record */
314
+ readonly REST_INSERT_INSUFFICIENT_ACCESS: "E4672";
315
+ /** Duplicate record detected during insert */
316
+ readonly REST_INSERT_DUPLICATE: "E4673";
317
+ /** Configuration REST endpoint not available (ISV version too old) */
318
+ readonly USER_CONFIG_ENDPOINT_UNAVAILABLE: "E4674";
319
+ /** Insufficient access to the configuration REST endpoint */
320
+ readonly USER_CONFIG_ENDPOINT_INSUFFICIENT_ACCESS: "E4675";
321
+ /** Configuration feature is not enabled in this org */
322
+ readonly USER_CONFIG_FEATURE_NOT_ENABLED: "E4676";
323
+ /** API-Based Profiling feature is not enabled for this organization */
324
+ readonly FEATURE_NOT_ENABLED: "E4680";
325
+ /** Feature status endpoint check failed */
326
+ readonly FEATURE_STATUS_CHECK_FAILED: "E4681";
327
+ /** Object describe operation failed */
328
+ readonly OBJECT_DESCRIBE_FAILED: "E4800";
329
+ /** Object not found for describe operation */
330
+ readonly OBJECT_DESCRIBE_NOT_FOUND: "E4801";
331
+ /** Insufficient permissions to access object for describe operation */
332
+ readonly OBJECT_DESCRIBE_PERMISSION_DENIED: "E4802";
333
+ /** Object name is required for describe operation */
334
+ readonly OBJECT_DESCRIBE_OBJECT_NAME_REQUIRED: "E4803";
335
+ /** Invalid object name format for describe operation */
336
+ readonly OBJECT_DESCRIBE_INVALID_OBJECT_NAME: "E4804";
337
+ /** Big Objects are not supported for describe operations */
338
+ readonly OBJECT_DESCRIBE_BIG_OBJECT_REJECTED: "E4805";
339
+ /** External Objects are not supported for describe operations */
340
+ readonly OBJECT_DESCRIBE_EXTERNAL_OBJECT_REJECTED: "E4806";
341
+ /** Record type enrichment failed during describe operation */
342
+ readonly OBJECT_DESCRIBE_RECORD_TYPE_ENRICHMENT_FAILED: "E4807";
343
+ /** Profiling definition enrichment failed during describe operation */
344
+ readonly OBJECT_DESCRIBE_DEFINITION_ENRICHMENT_FAILED: "E4808";
345
+ /** Profiling summary enrichment failed during describe operation */
346
+ readonly OBJECT_DESCRIBE_SUMMARY_ENRICHMENT_FAILED: "E4809";
347
+ /** Generic profiling execution failed */
348
+ readonly PROFILING_EXECUTION_FAILED: "E4850";
349
+ /** Definition ID is required for profiling execution */
350
+ readonly PROFILING_DEFINITION_ID_REQUIRED: "E4851";
351
+ /** Invalid profiling definition ID format */
352
+ readonly PROFILING_INVALID_DEFINITION_ID: "E4852";
353
+ /** Profiling definition not found */
354
+ readonly PROFILING_DEFINITION_NOT_FOUND: "E4853";
355
+ /** REST API trigger for profiling failed */
356
+ readonly PROFILING_REST_TRIGGER_FAILED: "E4854";
357
+ /** Profiling request creation failed */
358
+ readonly PROFILING_REQUEST_CREATION_FAILED: "E4855";
359
+ /** Profiling status poll failed */
360
+ readonly PROFILING_POLL_FAILED: "E4856";
361
+ /** Profiling operation timed out */
362
+ readonly PROFILING_TIMEOUT: "E4857";
363
+ /** Profiling request not found */
364
+ readonly PROFILING_REQUEST_NOT_FOUND: "E4859";
365
+ /** Failed to extract profiling request ID */
366
+ readonly PROFILING_REQUEST_ID_EXTRACTION_FAILED: "E4861";
367
+ /** Bulk execution requires at least one definition */
368
+ readonly PROFILING_BULK_EMPTY_DEFINITIONS: "E4862";
369
+ /** Invalid parallel option for bulk execution */
370
+ readonly PROFILING_BULK_INVALID_PARALLEL: "E4863";
371
+ /** Bulk execution failed */
372
+ readonly PROFILING_BULK_EXECUTION_FAILED: "E4864";
373
+ /** Request ID is required */
374
+ readonly PROFILING_REQUEST_ID_REQUIRED: "E4865";
375
+ /** Invalid profiling request ID format */
376
+ readonly PROFILING_INVALID_REQUEST_ID: "E4866";
377
+ /** Profile request list query failed */
378
+ readonly REQUEST_LIST_QUERY_FAILED: "E4900";
379
+ /** Profile request not found */
380
+ readonly REQUEST_NOT_FOUND: "E4901";
381
+ /** Profile request cancel failed */
382
+ readonly REQUEST_CANCEL_FAILED: "E4902";
383
+ /** Invalid request IDs provided */
384
+ readonly REQUEST_INVALID_IDS: "E4903";
385
+ /** No cancellable requests found */
386
+ readonly REQUEST_NO_CANCELLABLE: "E4904";
387
+ /** Request cancel partial failure */
388
+ readonly REQUEST_CANCEL_PARTIAL_FAILURE: "E4905";
389
+ /** Request delete failed */
390
+ readonly REQUEST_DELETE_FAILED: "E4906";
391
+ /** Request query failed (SOQL query for active requests) */
392
+ readonly REQUEST_QUERY_FAILED: "E4907";
393
+ /** No deletable requests found */
394
+ readonly REQUEST_NO_DELETABLE: "E4908";
395
+ /** Request delete partial failure */
396
+ readonly REQUEST_DELETE_PARTIAL_FAILURE: "E4909";
397
+ /** Data availability grid build failed */
398
+ readonly DATA_AVAILABILITY_GRID_BUILD_FAILED: "E4920";
399
+ };
400
+ /**
401
+ * Type for service error code values.
402
+ */
403
+ export type ServiceErrorCode = (typeof ServiceErrorCodes)[keyof typeof ServiceErrorCodes];
404
+ /**
405
+ * Type for adapter error code values.
406
+ */
407
+ export type AdapterErrorCode = (typeof AdapterErrorCodes)[keyof typeof AdapterErrorCodes];
408
+ /**
409
+ * Maps a Salesforce DML error code to an insert-specific adapter error code.
410
+ *
411
+ * Checks for patterns in the error code to determine the specific DML error type:
412
+ * - INSUFFICIENT_ACCESS/NO_ACCESS/PERMISSION → INSERT_INSUFFICIENT_ACCESS (E3205)
413
+ * - DUPLICATE_VALUE/ALREADY_EXISTS → INSERT_DUPLICATE_VALUE (E3206)
414
+ * - Other → INSERT_RECORD_FAILED (E3204)
415
+ *
416
+ * @param sfErrorCode - The Salesforce error code to map
417
+ * @returns The corresponding adapter error code for insert operations
418
+ *
419
+ * @example
420
+ * ```typescript
421
+ * const adapterCode = mapDmlInsertError('INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY');
422
+ * // Returns 'E3205' (INSERT_INSUFFICIENT_ACCESS)
423
+ * ```
424
+ */
425
+ export declare function mapDmlInsertError(sfErrorCode: string): AdapterErrorCode;
426
+ /**
427
+ * Maps a Salesforce DML error code to an update-specific adapter error code.
428
+ *
429
+ * Checks for patterns in the error code to determine the specific DML error type:
430
+ * - INSUFFICIENT_ACCESS/NO_ACCESS/PERMISSION → UPDATE_INSUFFICIENT_ACCESS (E3208)
431
+ * - NOT_FOUND/INVALID_ID → UPDATE_RECORD_NOT_FOUND (E3209)
432
+ * - Other → UPDATE_RECORD_FAILED (E3207)
433
+ *
434
+ * @param sfErrorCode - The Salesforce error code to map
435
+ * @returns The corresponding adapter error code for update operations
436
+ *
437
+ * @example
438
+ * ```typescript
439
+ * const adapterCode = mapDmlUpdateError('INSUFFICIENT_ACCESS_OR_READONLY');
440
+ * // Returns 'E3208' (UPDATE_INSUFFICIENT_ACCESS)
441
+ * ```
442
+ */
443
+ export declare function mapDmlUpdateError(sfErrorCode: string): AdapterErrorCode;
444
+ /**
445
+ * Maps a Salesforce DML error code to a delete-specific adapter error code.
446
+ *
447
+ * Checks for patterns in the error code to determine the specific DML error type:
448
+ * - INSUFFICIENT_ACCESS/NO_ACCESS/PERMISSION → DELETE_INSUFFICIENT_ACCESS (E3211)
449
+ * - NOT_FOUND/INVALID_ID/ENTITY_IS_DELETED → DELETE_RECORD_NOT_FOUND (E3212)
450
+ * - Other → DELETE_RECORD_FAILED (E3210)
451
+ *
452
+ * @param sfErrorCode - The Salesforce error code to map
453
+ * @returns The corresponding adapter error code for delete operations
454
+ *
455
+ * @example
456
+ * ```typescript
457
+ * const adapterCode = mapDmlDeleteError('ENTITY_IS_DELETED');
458
+ * // Returns 'E3212' (DELETE_RECORD_NOT_FOUND)
459
+ * ```
460
+ */
461
+ export declare function mapDmlDeleteError(sfErrorCode: string): AdapterErrorCode;
462
+ /**
463
+ * Maps Salesforce error codes to adapter error codes.
464
+ *
465
+ * @param sfErrorCode - The Salesforce error code or error name
466
+ * @param category - The error category to use for mapping
467
+ * @returns The mapped adapter error code
468
+ *
469
+ * @example
470
+ * ```typescript
471
+ * const adapterCode = mapSalesforceError('INVALID_QUERY', 'soql');
472
+ * // Returns 'E3102'
473
+ * ```
474
+ */
475
+ export declare function mapSalesforceError(sfErrorCode: string, category: 'soql' | 'rest' | 'tooling'): AdapterErrorCode;
476
+ /**
477
+ * Error code description map for user-friendly messages.
478
+ * Includes both adapter and service error codes.
479
+ */
480
+ export declare const ErrorCodeDescriptions: Record<AdapterErrorCode | ServiceErrorCode, string>;
481
+ /**
482
+ * Extracts the Salesforce error code from an error object.
483
+ *
484
+ * This utility parses various error formats from jsforce and the Salesforce API
485
+ * to extract the underlying error code for proper error mapping.
486
+ *
487
+ * @param error - The error to extract from
488
+ * @returns The Salesforce error code or undefined
489
+ *
490
+ * @example
491
+ * ```typescript
492
+ * try {
493
+ * await connection.query('INVALID SOQL');
494
+ * } catch (error) {
495
+ * const sfErrorCode = extractSalesforceErrorCode(error);
496
+ * // Returns 'INVALID_QUERY' or similar
497
+ * }
498
+ * ```
499
+ */
500
+ export declare function extractSalesforceErrorCode(error: unknown): string | undefined;
501
+ /**
502
+ * Validates and sanitizes a Salesforce API name for use in SOQL queries.
503
+ *
504
+ * This function prevents SOQL injection by validating that the input
505
+ * matches the expected pattern for Salesforce API names.
506
+ *
507
+ * @param value - The value to sanitize (object name, field name, etc.)
508
+ * @returns The validated value
509
+ * @throws {SfError} InvalidApiName if the value contains invalid characters
510
+ *
511
+ * @example
512
+ * ```typescript
513
+ * sanitizeSoqlIdentifier('Account'); // Returns 'Account'
514
+ * sanitizeSoqlIdentifier('Custom_Object__c'); // Returns 'Custom_Object__c'
515
+ * sanitizeSoqlIdentifier("Account' OR '1'='1"); // Throws Error
516
+ * ```
517
+ */
518
+ export declare function sanitizeSoqlIdentifier(value: string): string;
519
+ /**
520
+ * Escapes a string value for use in SOQL string literals.
521
+ *
522
+ * This function escapes single quotes and backslashes to prevent
523
+ * SOQL injection when the value must be used as a string literal.
524
+ *
525
+ * @param value - The string value to escape
526
+ * @returns The escaped string (without surrounding quotes)
527
+ *
528
+ * @example
529
+ * ```typescript
530
+ * escapeSoqlString("O'Brien"); // Returns "O\\'Brien"
531
+ * escapeSoqlString('Test\\Path'); // Returns 'Test\\\\Path'
532
+ * ```
533
+ */
534
+ export declare function escapeSoqlString(value: string): string;
535
+ /**
536
+ * Detects whether an error message indicates an org connectivity issue
537
+ * (unreachable org, expired session, HTML response instead of JSON, etc.).
538
+ *
539
+ * jsforce and the Salesforce REST API return HTML responses (login pages, error pages)
540
+ * when an org is unreachable, expired, or the session is invalid. These produce
541
+ * cryptic error messages like "HTTP response contains html content" that are
542
+ * unhelpful to CLI users.
543
+ *
544
+ * @param message - The error message string to check
545
+ * @returns true if the message indicates an org connectivity problem
546
+ */
547
+ export declare function isOrgConnectivityError(message: string): boolean;