@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.
- package/LICENSE +81 -30
- package/README.md +59 -95
- package/lib/adapters/connection-facade.d.ts +458 -0
- package/lib/adapters/connection-facade.js +379 -0
- package/lib/adapters/connection-facade.js.map +1 -0
- package/lib/adapters/errors.d.ts +547 -0
- package/lib/adapters/errors.js +937 -0
- package/lib/adapters/errors.js.map +1 -0
- package/lib/adapters/index.d.ts +33 -0
- package/lib/adapters/index.js +50 -0
- package/lib/adapters/index.js.map +1 -0
- package/lib/adapters/lifecycle.d.ts +119 -0
- package/lib/adapters/lifecycle.js +94 -0
- package/lib/adapters/lifecycle.js.map +1 -0
- package/lib/adapters/rest/cache.d.ts +69 -0
- package/lib/adapters/rest/cache.js +133 -0
- package/lib/adapters/rest/cache.js.map +1 -0
- package/lib/adapters/rest/index.d.ts +11 -0
- package/lib/adapters/rest/index.js +18 -0
- package/lib/adapters/rest/index.js.map +1 -0
- package/lib/adapters/rest/profiling-rest-client.d.ts +137 -0
- package/lib/adapters/rest/profiling-rest-client.js +115 -0
- package/lib/adapters/rest/profiling-rest-client.js.map +1 -0
- package/lib/adapters/rest/rest-api-adapter.d.ts +389 -0
- package/lib/adapters/rest/rest-api-adapter.js +747 -0
- package/lib/adapters/rest/rest-api-adapter.js.map +1 -0
- package/lib/adapters/rest/types.d.ts +34 -0
- package/lib/adapters/rest/types.js +9 -0
- package/lib/adapters/rest/types.js.map +1 -0
- package/lib/adapters/retry.d.ts +91 -0
- package/lib/adapters/retry.js +215 -0
- package/lib/adapters/retry.js.map +1 -0
- package/lib/adapters/soql/cuneiform-query-builder.d.ts +391 -0
- package/lib/adapters/soql/cuneiform-query-builder.js +559 -0
- package/lib/adapters/soql/cuneiform-query-builder.js.map +1 -0
- package/lib/adapters/soql/index.d.ts +13 -0
- package/lib/adapters/soql/index.js +21 -0
- package/lib/adapters/soql/index.js.map +1 -0
- package/lib/adapters/soql/soql-query-adapter.d.ts +141 -0
- package/lib/adapters/soql/soql-query-adapter.js +259 -0
- package/lib/adapters/soql/soql-query-adapter.js.map +1 -0
- package/lib/adapters/soql/types.d.ts +37 -0
- package/lib/adapters/soql/types.js +19 -0
- package/lib/adapters/soql/types.js.map +1 -0
- package/lib/adapters/testing/index.d.ts +37 -0
- package/lib/adapters/testing/index.js +20 -0
- package/lib/adapters/testing/index.js.map +1 -0
- package/lib/adapters/testing/mock-connection.d.ts +77 -0
- package/lib/adapters/testing/mock-connection.js +207 -0
- package/lib/adapters/testing/mock-connection.js.map +1 -0
- package/lib/adapters/testing/mock-logger.d.ts +29 -0
- package/lib/adapters/testing/mock-logger.js +57 -0
- package/lib/adapters/testing/mock-logger.js.map +1 -0
- package/lib/adapters/testing/mock-mcp-adapters.d.ts +32 -0
- package/lib/adapters/testing/mock-mcp-adapters.js +52 -0
- package/lib/adapters/testing/mock-mcp-adapters.js.map +1 -0
- package/lib/adapters/testing/mock-oclif-config.d.ts +22 -0
- package/lib/adapters/testing/mock-oclif-config.js +90 -0
- package/lib/adapters/testing/mock-oclif-config.js.map +1 -0
- package/lib/adapters/testing/mock-rest-adapter.d.ts +26 -0
- package/lib/adapters/testing/mock-rest-adapter.js +243 -0
- package/lib/adapters/testing/mock-rest-adapter.js.map +1 -0
- package/lib/adapters/testing/mock-salesforce-connection.d.ts +40 -0
- package/lib/adapters/testing/mock-salesforce-connection.js +61 -0
- package/lib/adapters/testing/mock-salesforce-connection.js.map +1 -0
- package/lib/adapters/testing/mock-soql-adapter.d.ts +30 -0
- package/lib/adapters/testing/mock-soql-adapter.js +120 -0
- package/lib/adapters/testing/mock-soql-adapter.js.map +1 -0
- package/lib/adapters/testing/mock-tooling-adapter.d.ts +24 -0
- package/lib/adapters/testing/mock-tooling-adapter.js +163 -0
- package/lib/adapters/testing/mock-tooling-adapter.js.map +1 -0
- package/lib/adapters/testing/stub-connection.d.ts +93 -0
- package/lib/adapters/testing/stub-connection.js +97 -0
- package/lib/adapters/testing/stub-connection.js.map +1 -0
- package/lib/adapters/testing/stub-rest-adapter.d.ts +52 -0
- package/lib/adapters/testing/stub-rest-adapter.js +58 -0
- package/lib/adapters/testing/stub-rest-adapter.js.map +1 -0
- package/lib/adapters/testing/stub-soql-adapter.d.ts +56 -0
- package/lib/adapters/testing/stub-soql-adapter.js +50 -0
- package/lib/adapters/testing/stub-soql-adapter.js.map +1 -0
- package/lib/adapters/testing/types.d.ts +71 -0
- package/lib/adapters/testing/types.js +9 -0
- package/lib/adapters/testing/types.js.map +1 -0
- package/lib/adapters/tooling/index.d.ts +10 -0
- package/lib/adapters/tooling/index.js +17 -0
- package/lib/adapters/tooling/index.js.map +1 -0
- package/lib/adapters/tooling/tooling-api-adapter.d.ts +157 -0
- package/lib/adapters/tooling/tooling-api-adapter.js +339 -0
- package/lib/adapters/tooling/tooling-api-adapter.js.map +1 -0
- package/lib/adapters/tooling/types.d.ts +81 -0
- package/lib/adapters/tooling/types.js +9 -0
- package/lib/adapters/tooling/types.js.map +1 -0
- package/lib/adapters/types.d.ts +112 -0
- package/lib/adapters/types.js +169 -0
- package/lib/adapters/types.js.map +1 -0
- package/lib/base/cuneiform-command.d.ts +152 -0
- package/lib/base/cuneiform-command.js +243 -0
- package/lib/base/cuneiform-command.js.map +1 -0
- package/lib/commands/cuneiform/compatibility/check.d.ts +43 -0
- package/lib/commands/cuneiform/compatibility/check.js +114 -0
- package/lib/commands/cuneiform/compatibility/check.js.map +1 -0
- package/lib/commands/cuneiform/definition/create.d.ts +119 -0
- package/lib/commands/cuneiform/definition/create.js +693 -0
- package/lib/commands/cuneiform/definition/create.js.map +1 -0
- package/lib/commands/cuneiform/definition/export.d.ts +57 -0
- package/lib/commands/cuneiform/definition/export.js +133 -0
- package/lib/commands/cuneiform/definition/export.js.map +1 -0
- package/lib/commands/cuneiform/definition/get.d.ts +86 -0
- package/lib/commands/cuneiform/definition/get.js +270 -0
- package/lib/commands/cuneiform/definition/get.js.map +1 -0
- package/lib/commands/cuneiform/definition/import.d.ts +54 -0
- package/lib/commands/cuneiform/definition/import.js +118 -0
- package/lib/commands/cuneiform/definition/import.js.map +1 -0
- package/lib/commands/cuneiform/definition/list.d.ts +110 -0
- package/lib/commands/cuneiform/definition/list.js +344 -0
- package/lib/commands/cuneiform/definition/list.js.map +1 -0
- package/lib/commands/cuneiform/definition/purge.d.ts +105 -0
- package/lib/commands/cuneiform/definition/purge.js +533 -0
- package/lib/commands/cuneiform/definition/purge.js.map +1 -0
- package/lib/commands/cuneiform/definition/update.d.ts +58 -0
- package/lib/commands/cuneiform/definition/update.js +206 -0
- package/lib/commands/cuneiform/definition/update.js.map +1 -0
- package/lib/commands/cuneiform/mcp/serve.d.ts +56 -0
- package/lib/commands/cuneiform/mcp/serve.js +109 -0
- package/lib/commands/cuneiform/mcp/serve.js.map +1 -0
- package/lib/commands/cuneiform/object/describe.d.ts +61 -0
- package/lib/commands/cuneiform/object/describe.js +461 -0
- package/lib/commands/cuneiform/object/describe.js.map +1 -0
- package/lib/commands/cuneiform/object/list.d.ts +111 -0
- package/lib/commands/cuneiform/object/list.js +239 -0
- package/lib/commands/cuneiform/object/list.js.map +1 -0
- package/lib/commands/cuneiform/org/details.d.ts +99 -0
- package/lib/commands/cuneiform/org/details.js +521 -0
- package/lib/commands/cuneiform/org/details.js.map +1 -0
- package/lib/commands/cuneiform/org/reset.d.ts +46 -0
- package/lib/commands/cuneiform/org/reset.js +135 -0
- package/lib/commands/cuneiform/org/reset.js.map +1 -0
- package/lib/commands/cuneiform/profile/request/cancel.d.ts +59 -0
- package/lib/commands/cuneiform/profile/request/cancel.js +202 -0
- package/lib/commands/cuneiform/profile/request/cancel.js.map +1 -0
- package/lib/commands/cuneiform/profile/request/delete.d.ts +59 -0
- package/lib/commands/cuneiform/profile/request/delete.js +223 -0
- package/lib/commands/cuneiform/profile/request/delete.js.map +1 -0
- package/lib/commands/cuneiform/profile/request/list.d.ts +35 -0
- package/lib/commands/cuneiform/profile/request/list.js +102 -0
- package/lib/commands/cuneiform/profile/request/list.js.map +1 -0
- package/lib/commands/cuneiform/profile.d.ts +90 -0
- package/lib/commands/cuneiform/profile.js +322 -0
- package/lib/commands/cuneiform/profile.js.map +1 -0
- package/lib/commands/cuneiform/summary/purge.d.ts +77 -0
- package/lib/commands/cuneiform/summary/purge.js +429 -0
- package/lib/commands/cuneiform/summary/purge.js.map +1 -0
- package/lib/commands/cuneiform/summary/reprofile.d.ts +60 -0
- package/lib/commands/cuneiform/summary/reprofile.js +236 -0
- package/lib/commands/cuneiform/summary/reprofile.js.map +1 -0
- package/lib/commands/cuneiform/summary/stop.d.ts +59 -0
- package/lib/commands/cuneiform/summary/stop.js +234 -0
- package/lib/commands/cuneiform/summary/stop.js.map +1 -0
- package/lib/commands/cuneiform/user/details.d.ts +73 -0
- package/lib/commands/cuneiform/user/details.js +391 -0
- package/lib/commands/cuneiform/user/details.js.map +1 -0
- package/lib/constants/index.d.ts +8 -0
- package/lib/constants/index.js +16 -0
- package/lib/constants/index.js.map +1 -0
- package/lib/constants/namespace-constants.d.ts +91 -0
- package/lib/constants/namespace-constants.js +211 -0
- package/lib/constants/namespace-constants.js.map +1 -0
- package/lib/debug/command-debug-proxy.d.ts +101 -0
- package/lib/debug/command-debug-proxy.js +171 -0
- package/lib/debug/command-debug-proxy.js.map +1 -0
- package/lib/debug/debug-logger.d.ts +85 -0
- package/lib/debug/debug-logger.js +133 -0
- package/lib/debug/debug-logger.js.map +1 -0
- package/lib/debug/index.d.ts +12 -0
- package/lib/debug/index.js +20 -0
- package/lib/debug/index.js.map +1 -0
- package/lib/debug/service-debug-proxy.d.ts +30 -0
- package/lib/debug/service-debug-proxy.js +102 -0
- package/lib/debug/service-debug-proxy.js.map +1 -0
- package/lib/hooks/prerun.d.ts +25 -0
- package/lib/hooks/prerun.js +47 -0
- package/lib/hooks/prerun.js.map +1 -0
- package/lib/mcp/config/mcp-config.d.ts +55 -0
- package/lib/mcp/config/mcp-config.js +51 -0
- package/lib/mcp/config/mcp-config.js.map +1 -0
- package/lib/mcp/config/pagination.d.ts +96 -0
- package/lib/mcp/config/pagination.js +108 -0
- package/lib/mcp/config/pagination.js.map +1 -0
- package/lib/mcp/config/system-prompts.d.ts +18 -0
- package/lib/mcp/config/system-prompts.js +92 -0
- package/lib/mcp/config/system-prompts.js.map +1 -0
- package/lib/mcp/errors.d.ts +23 -0
- package/lib/mcp/errors.js +27 -0
- package/lib/mcp/errors.js.map +1 -0
- package/lib/mcp/schemas/input-schemas.d.ts +327 -0
- package/lib/mcp/schemas/input-schemas.js +302 -0
- package/lib/mcp/schemas/input-schemas.js.map +1 -0
- package/lib/mcp/server.d.ts +40 -0
- package/lib/mcp/server.js +316 -0
- package/lib/mcp/server.js.map +1 -0
- package/lib/mcp/tools/contactpoint-tools.d.ts +14 -0
- package/lib/mcp/tools/contactpoint-tools.js +34 -0
- package/lib/mcp/tools/contactpoint-tools.js.map +1 -0
- package/lib/mcp/tools/definition-io-tools.d.ts +19 -0
- package/lib/mcp/tools/definition-io-tools.js +152 -0
- package/lib/mcp/tools/definition-io-tools.js.map +1 -0
- package/lib/mcp/tools/definition-tools.d.ts +51 -0
- package/lib/mcp/tools/definition-tools.js +199 -0
- package/lib/mcp/tools/definition-tools.js.map +1 -0
- package/lib/mcp/tools/index.d.ts +37 -0
- package/lib/mcp/tools/index.js +88 -0
- package/lib/mcp/tools/index.js.map +1 -0
- package/lib/mcp/tools/object-tools.d.ts +22 -0
- package/lib/mcp/tools/object-tools.js +306 -0
- package/lib/mcp/tools/object-tools.js.map +1 -0
- package/lib/mcp/tools/org-tools.d.ts +14 -0
- package/lib/mcp/tools/org-tools.js +177 -0
- package/lib/mcp/tools/org-tools.js.map +1 -0
- package/lib/mcp/tools/profile-tools.d.ts +59 -0
- package/lib/mcp/tools/profile-tools.js +213 -0
- package/lib/mcp/tools/profile-tools.js.map +1 -0
- package/lib/mcp/tools/summary-tools.d.ts +14 -0
- package/lib/mcp/tools/summary-tools.js +38 -0
- package/lib/mcp/tools/summary-tools.js.map +1 -0
- package/lib/mcp/tools/tool-factory.d.ts +63 -0
- package/lib/mcp/tools/tool-factory.js +146 -0
- package/lib/mcp/tools/tool-factory.js.map +1 -0
- package/lib/mcp/tools/user-tools.d.ts +25 -0
- package/lib/mcp/tools/user-tools.js +167 -0
- package/lib/mcp/tools/user-tools.js.map +1 -0
- package/lib/models/date-literal.d.ts +211 -0
- package/lib/models/date-literal.js +615 -0
- package/lib/models/date-literal.js.map +1 -0
- package/lib/models/object-describe-types.d.ts +173 -0
- package/lib/models/object-describe-types.js +9 -0
- package/lib/models/object-describe-types.js.map +1 -0
- package/lib/models/profile-request-types.d.ts +118 -0
- package/lib/models/profile-request-types.js +23 -0
- package/lib/models/profile-request-types.js.map +1 -0
- package/lib/models/profiling-execution-types.d.ts +154 -0
- package/lib/models/profiling-execution-types.js +14 -0
- package/lib/models/profiling-execution-types.js.map +1 -0
- package/lib/models/service-result.d.ts +114 -0
- package/lib/models/service-result.js +81 -0
- package/lib/models/service-result.js.map +1 -0
- package/lib/models/sfdmu-types.d.ts +53 -0
- package/lib/models/sfdmu-types.js +23 -0
- package/lib/models/sfdmu-types.js.map +1 -0
- package/lib/models/status-types.d.ts +38 -0
- package/lib/models/status-types.js +12 -0
- package/lib/models/status-types.js.map +1 -0
- package/lib/models/summary-bulk-types.d.ts +61 -0
- package/lib/models/summary-bulk-types.js +23 -0
- package/lib/models/summary-bulk-types.js.map +1 -0
- package/lib/models/user-details-types.d.ts +163 -0
- package/lib/models/user-details-types.js +9 -0
- package/lib/models/user-details-types.js.map +1 -0
- package/lib/models/year-range.d.ts +78 -0
- package/lib/models/year-range.js +153 -0
- package/lib/models/year-range.js.map +1 -0
- package/lib/operations/CompatibilityCheckOperation.d.ts +62 -0
- package/lib/operations/CompatibilityCheckOperation.js +102 -0
- package/lib/operations/CompatibilityCheckOperation.js.map +1 -0
- package/lib/operations/DefinitionCreateOperation.d.ts +411 -0
- package/lib/operations/DefinitionCreateOperation.js +1121 -0
- package/lib/operations/DefinitionCreateOperation.js.map +1 -0
- package/lib/operations/DefinitionExportOperation.d.ts +155 -0
- package/lib/operations/DefinitionExportOperation.js +281 -0
- package/lib/operations/DefinitionExportOperation.js.map +1 -0
- package/lib/operations/DefinitionImportOperation.d.ts +144 -0
- package/lib/operations/DefinitionImportOperation.js +357 -0
- package/lib/operations/DefinitionImportOperation.js.map +1 -0
- package/lib/operations/DefinitionListOperation.d.ts +66 -0
- package/lib/operations/DefinitionListOperation.js +108 -0
- package/lib/operations/DefinitionListOperation.js.map +1 -0
- package/lib/operations/DefinitionPurgeOperation.d.ts +199 -0
- package/lib/operations/DefinitionPurgeOperation.js +465 -0
- package/lib/operations/DefinitionPurgeOperation.js.map +1 -0
- package/lib/operations/DefinitionUpdateOperation.d.ts +78 -0
- package/lib/operations/DefinitionUpdateOperation.js +142 -0
- package/lib/operations/DefinitionUpdateOperation.js.map +1 -0
- package/lib/operations/OrgDetailsOperation.d.ts +253 -0
- package/lib/operations/OrgDetailsOperation.js +456 -0
- package/lib/operations/OrgDetailsOperation.js.map +1 -0
- package/lib/operations/OrgResetOperation.d.ts +114 -0
- package/lib/operations/OrgResetOperation.js +209 -0
- package/lib/operations/OrgResetOperation.js.map +1 -0
- package/lib/operations/ProfileOperation.d.ts +187 -0
- package/lib/operations/ProfileOperation.js +373 -0
- package/lib/operations/ProfileOperation.js.map +1 -0
- package/lib/operations/ProfileRequestCancelOperation.d.ts +59 -0
- package/lib/operations/ProfileRequestCancelOperation.js +137 -0
- package/lib/operations/ProfileRequestCancelOperation.js.map +1 -0
- package/lib/operations/ProfileRequestDeleteOperation.d.ts +64 -0
- package/lib/operations/ProfileRequestDeleteOperation.js +134 -0
- package/lib/operations/ProfileRequestDeleteOperation.js.map +1 -0
- package/lib/operations/ProfileRequestListOperation.d.ts +39 -0
- package/lib/operations/ProfileRequestListOperation.js +61 -0
- package/lib/operations/ProfileRequestListOperation.js.map +1 -0
- package/lib/operations/SummaryPurgeOperation.d.ts +134 -0
- package/lib/operations/SummaryPurgeOperation.js +257 -0
- package/lib/operations/SummaryPurgeOperation.js.map +1 -0
- package/lib/operations/SummaryReprofileOperation.d.ts +88 -0
- package/lib/operations/SummaryReprofileOperation.js +174 -0
- package/lib/operations/SummaryReprofileOperation.js.map +1 -0
- package/lib/operations/SummaryStopOperation.d.ts +87 -0
- package/lib/operations/SummaryStopOperation.js +175 -0
- package/lib/operations/SummaryStopOperation.js.map +1 -0
- package/lib/services/BulkExecutionService.d.ts +120 -0
- package/lib/services/BulkExecutionService.js +535 -0
- package/lib/services/BulkExecutionService.js.map +1 -0
- package/lib/services/CompatibilityService.d.ts +81 -0
- package/lib/services/CompatibilityService.js +118 -0
- package/lib/services/CompatibilityService.js.map +1 -0
- package/lib/services/ConfigureMode.d.ts +85 -0
- package/lib/services/ConfigureMode.js +390 -0
- package/lib/services/ConfigureMode.js.map +1 -0
- package/lib/services/ContactPointService.d.ts +111 -0
- package/lib/services/ContactPointService.js +286 -0
- package/lib/services/ContactPointService.js.map +1 -0
- package/lib/services/DataAvailabilityService.d.ts +81 -0
- package/lib/services/DataAvailabilityService.js +128 -0
- package/lib/services/DataAvailabilityService.js.map +1 -0
- package/lib/services/DefinitionFieldGenerationService.d.ts +309 -0
- package/lib/services/DefinitionFieldGenerationService.js +795 -0
- package/lib/services/DefinitionFieldGenerationService.js.map +1 -0
- package/lib/services/DefinitionQueryBuilder.d.ts +59 -0
- package/lib/services/DefinitionQueryBuilder.js +234 -0
- package/lib/services/DefinitionQueryBuilder.js.map +1 -0
- package/lib/services/ObjectDescribeService.d.ts +436 -0
- package/lib/services/ObjectDescribeService.js +869 -0
- package/lib/services/ObjectDescribeService.js.map +1 -0
- package/lib/services/ObjectFilteringService.d.ts +400 -0
- package/lib/services/ObjectFilteringService.js +878 -0
- package/lib/services/ObjectFilteringService.js.map +1 -0
- package/lib/services/ObjectListCommandService.d.ts +429 -0
- package/lib/services/ObjectListCommandService.js +873 -0
- package/lib/services/ObjectListCommandService.js.map +1 -0
- package/lib/services/ObjectListService.d.ts +201 -0
- package/lib/services/ObjectListService.js +345 -0
- package/lib/services/ObjectListService.js.map +1 -0
- package/lib/services/OrgInfoService.d.ts +485 -0
- package/lib/services/OrgInfoService.js +1122 -0
- package/lib/services/OrgInfoService.js.map +1 -0
- package/lib/services/PollingService.d.ts +105 -0
- package/lib/services/PollingService.js +117 -0
- package/lib/services/PollingService.js.map +1 -0
- package/lib/services/ProfileRequestService.d.ts +186 -0
- package/lib/services/ProfileRequestService.js +555 -0
- package/lib/services/ProfileRequestService.js.map +1 -0
- package/lib/services/ProfilingDefinitionService.d.ts +535 -0
- package/lib/services/ProfilingDefinitionService.js +981 -0
- package/lib/services/ProfilingDefinitionService.js.map +1 -0
- package/lib/services/ProfilingExecutionService.d.ts +122 -0
- package/lib/services/ProfilingExecutionService.js +320 -0
- package/lib/services/ProfilingExecutionService.js.map +1 -0
- package/lib/services/ProfilingSummaryService.d.ts +292 -0
- package/lib/services/ProfilingSummaryService.js +685 -0
- package/lib/services/ProfilingSummaryService.js.map +1 -0
- package/lib/services/RecordTypeService.d.ts +129 -0
- package/lib/services/RecordTypeService.js +284 -0
- package/lib/services/RecordTypeService.js.map +1 -0
- package/lib/services/SFDMUService.d.ts +133 -0
- package/lib/services/SFDMUService.js +295 -0
- package/lib/services/SFDMUService.js.map +1 -0
- package/lib/services/TabDetectionService.d.ts +105 -0
- package/lib/services/TabDetectionService.js +206 -0
- package/lib/services/TabDetectionService.js.map +1 -0
- package/lib/services/UnconfigureMode.d.ts +74 -0
- package/lib/services/UnconfigureMode.js +378 -0
- package/lib/services/UnconfigureMode.js.map +1 -0
- package/lib/services/UserConfigurationService.d.ts +155 -0
- package/lib/services/UserConfigurationService.js +573 -0
- package/lib/services/UserConfigurationService.js.map +1 -0
- package/lib/services/UserConfigurationTypes.d.ts +181 -0
- package/lib/services/UserConfigurationTypes.js +14 -0
- package/lib/services/UserConfigurationTypes.js.map +1 -0
- package/lib/services/UserReadinessService.d.ts +330 -0
- package/lib/services/UserReadinessService.js +831 -0
- package/lib/services/UserReadinessService.js.map +1 -0
- package/lib/services/constants.d.ts +53 -0
- package/lib/services/constants.js +71 -0
- package/lib/services/constants.js.map +1 -0
- package/lib/services/namespace-constants.d.ts +1 -0
- package/lib/services/namespace-constants.js +11 -0
- package/lib/services/namespace-constants.js.map +1 -0
- package/lib/services/validation.d.ts +47 -0
- package/lib/services/validation.js +119 -0
- package/lib/services/validation.js.map +1 -0
- package/lib/utils/batch-processor.d.ts +13 -0
- package/lib/utils/batch-processor.js +39 -0
- package/lib/utils/batch-processor.js.map +1 -0
- package/lib/utils/formatting/availability-grid.d.ts +81 -0
- package/lib/utils/formatting/availability-grid.js +94 -0
- package/lib/utils/formatting/availability-grid.js.map +1 -0
- package/lib/utils/formatting/business-process-grid.d.ts +51 -0
- package/lib/utils/formatting/business-process-grid.js +58 -0
- package/lib/utils/formatting/business-process-grid.js.map +1 -0
- package/lib/utils/formatting/command-display.d.ts +154 -0
- package/lib/utils/formatting/command-display.js +154 -0
- package/lib/utils/formatting/command-display.js.map +1 -0
- package/lib/utils/formatting/definition-create-display.d.ts +118 -0
- package/lib/utils/formatting/definition-create-display.js +231 -0
- package/lib/utils/formatting/definition-create-display.js.map +1 -0
- package/lib/utils/formatting/empty-states.d.ts +35 -0
- package/lib/utils/formatting/empty-states.js +70 -0
- package/lib/utils/formatting/empty-states.js.map +1 -0
- package/lib/utils/formatting/errors.d.ts +33 -0
- package/lib/utils/formatting/errors.js +72 -0
- package/lib/utils/formatting/errors.js.map +1 -0
- package/lib/utils/formatting/field-types.d.ts +32 -0
- package/lib/utils/formatting/field-types.js +88 -0
- package/lib/utils/formatting/field-types.js.map +1 -0
- package/lib/utils/formatting/index.d.ts +29 -0
- package/lib/utils/formatting/index.js +28 -0
- package/lib/utils/formatting/index.js.map +1 -0
- package/lib/utils/formatting/indicators.d.ts +113 -0
- package/lib/utils/formatting/indicators.js +161 -0
- package/lib/utils/formatting/indicators.js.map +1 -0
- package/lib/utils/formatting/loading-messages.d.ts +37 -0
- package/lib/utils/formatting/loading-messages.js +50 -0
- package/lib/utils/formatting/loading-messages.js.map +1 -0
- package/lib/utils/formatting/namespace-display.d.ts +31 -0
- package/lib/utils/formatting/namespace-display.js +64 -0
- package/lib/utils/formatting/namespace-display.js.map +1 -0
- package/lib/utils/formatting/numbers.d.ts +73 -0
- package/lib/utils/formatting/numbers.js +187 -0
- package/lib/utils/formatting/numbers.js.map +1 -0
- package/lib/utils/formatting/object-describe-display.d.ts +114 -0
- package/lib/utils/formatting/object-describe-display.js +440 -0
- package/lib/utils/formatting/object-describe-display.js.map +1 -0
- package/lib/utils/formatting/object-list-display.d.ts +213 -0
- package/lib/utils/formatting/object-list-display.js +672 -0
- package/lib/utils/formatting/object-list-display.js.map +1 -0
- package/lib/utils/formatting/org-identity.d.ts +15 -0
- package/lib/utils/formatting/org-identity.js +28 -0
- package/lib/utils/formatting/org-identity.js.map +1 -0
- package/lib/utils/formatting/record-age-grid.d.ts +41 -0
- package/lib/utils/formatting/record-age-grid.js +56 -0
- package/lib/utils/formatting/record-age-grid.js.map +1 -0
- package/lib/utils/formatting/sections.d.ts +108 -0
- package/lib/utils/formatting/sections.js +150 -0
- package/lib/utils/formatting/sections.js.map +1 -0
- package/lib/utils/formatting/tables.d.ts +90 -0
- package/lib/utils/formatting/tables.js +113 -0
- package/lib/utils/formatting/tables.js.map +1 -0
- package/lib/utils/formatting/user-details-display.d.ts +101 -0
- package/lib/utils/formatting/user-details-display.js +425 -0
- package/lib/utils/formatting/user-details-display.js.map +1 -0
- package/lib/utils/pagination/index.d.ts +11 -0
- package/lib/utils/pagination/index.js +18 -0
- package/lib/utils/pagination/index.js.map +1 -0
- package/lib/utils/pagination/keypress-reader.d.ts +20 -0
- package/lib/utils/pagination/keypress-reader.js +63 -0
- package/lib/utils/pagination/keypress-reader.js.map +1 -0
- package/lib/utils/pagination/paginate-output.d.ts +48 -0
- package/lib/utils/pagination/paginate-output.js +136 -0
- package/lib/utils/pagination/paginate-output.js.map +1 -0
- package/messages/compatibility.check.md +71 -0
- package/messages/cuneiform.access.md +138 -0
- package/messages/definition.create.md +511 -0
- package/messages/definition.export.md +84 -0
- package/messages/definition.get.md +147 -0
- package/messages/definition.import.md +65 -0
- package/messages/definition.list.md +264 -0
- package/messages/definition.purge.md +318 -0
- package/messages/definition.update.md +118 -0
- package/messages/mcp.serve.md +66 -0
- package/messages/object.describe.md +201 -0
- package/messages/object.list.md +443 -0
- package/messages/org.details.md +386 -0
- package/messages/org.reset.md +71 -0
- package/messages/profile.md +231 -0
- package/messages/profile.request.cancel.md +143 -0
- package/messages/profile.request.delete.md +139 -0
- package/messages/profile.request.list.md +89 -0
- package/messages/summary.purge.md +218 -0
- package/messages/summary.reprofile.md +150 -0
- package/messages/summary.stop.md +157 -0
- package/messages/user.details.md +501 -0
- package/oclif.lock +2887 -2149
- package/oclif.manifest.json +2813 -31
- package/package.json +94 -19
- package/lib/commands/cuneiform/about.d.ts +0 -13
- package/lib/commands/cuneiform/about.js +0 -26
- package/lib/commands/cuneiform/about.js.map +0 -1
- package/lib/commands/hello/world.d.ts +0 -14
- package/lib/commands/hello/world.js +0 -27
- package/lib/commands/hello/world.js.map +0 -1
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -2
- package/lib/index.js.map +0 -1
- package/messages/cuneiform.about.md +0 -19
- package/messages/hello.world.md +0 -29
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2026, PeerNova, Inc. All Rights Reserved.
|
|
3
|
+
* PROPRIETARY AND CONFIDENTIAL. Unauthorized copying, modification,
|
|
4
|
+
* or distribution is strictly prohibited. Use is governed by the
|
|
5
|
+
* Master Subscription Agreement (MSA) between PeerNova, Inc. and the
|
|
6
|
+
* licensee. See LICENSE file in the repo root.
|
|
7
|
+
*/
|
|
8
|
+
import { Flags } from '@salesforce/sf-plugins-core';
|
|
9
|
+
import { Messages } from '@salesforce/core';
|
|
10
|
+
import { CuneiformCommand } from '../../../base/cuneiform-command.js';
|
|
11
|
+
import { ObjectFilteringService } from '../../../services/ObjectFilteringService.js';
|
|
12
|
+
import { ContactPointService } from '../../../services/ContactPointService.js';
|
|
13
|
+
import { ObjectListCommandService, } from '../../../services/ObjectListCommandService.js';
|
|
14
|
+
import { OrgInfoService } from '../../../services/OrgInfoService.js';
|
|
15
|
+
import { ProfilingRestClient } from '../../../adapters/rest/profiling-rest-client.js';
|
|
16
|
+
import { loadingMessage } from '../../../utils/formatting/index.js';
|
|
17
|
+
import { displayResults, buildCommandResult } from '../../../utils/formatting/object-list-display.js';
|
|
18
|
+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
19
|
+
const messages = Messages.loadMessages('@peernova/cuneiform-sf', 'object.list');
|
|
20
|
+
/**
|
|
21
|
+
* Lists Salesforce objects with record counts and optional filtering.
|
|
22
|
+
*
|
|
23
|
+
* Use this command to:
|
|
24
|
+
* - Discover objects in an org with record counts
|
|
25
|
+
* - Filter objects by type, namespace, or naming pattern
|
|
26
|
+
* - Find objects with specific characteristics (OwnerId, record types)
|
|
27
|
+
* - Analyze contact point fields for data profiling
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```bash
|
|
31
|
+
* # List all objects with record counts
|
|
32
|
+
* sf cuneiform object list --target-org myOrg
|
|
33
|
+
*
|
|
34
|
+
* # List custom objects only
|
|
35
|
+
* sf cuneiform object list --target-org myOrg --filter custom
|
|
36
|
+
*
|
|
37
|
+
* # Filter by namespace and include contact points
|
|
38
|
+
* sf cuneiform object list --target-org myOrg --namespace SBQQ --with-contact-points
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
// eslint-disable-next-line sf-plugin/only-extend-SfCommand -- CuneiformCommand extends SfCommand with shared access gate logic
|
|
42
|
+
export default class ObjectList extends CuneiformCommand {
|
|
43
|
+
static summary = messages.getMessage('summary');
|
|
44
|
+
static description = messages.getMessage('description');
|
|
45
|
+
static examples = messages.getMessages('examples');
|
|
46
|
+
// eslint-disable-next-line sf-plugin/spread-base-flags -- CuneiformCommand has no additional flags to spread
|
|
47
|
+
static flags = {
|
|
48
|
+
'target-org': Flags.requiredOrg({
|
|
49
|
+
summary: messages.getMessage('flags.target-org.summary'),
|
|
50
|
+
char: 'o',
|
|
51
|
+
required: true,
|
|
52
|
+
}),
|
|
53
|
+
'api-version': Flags.orgApiVersion(),
|
|
54
|
+
object: Flags.string({
|
|
55
|
+
summary: messages.getMessage('flags.object.summary'),
|
|
56
|
+
char: 'O',
|
|
57
|
+
}),
|
|
58
|
+
filter: Flags.option({
|
|
59
|
+
summary: messages.getMessage('flags.filter.summary'),
|
|
60
|
+
char: 'f',
|
|
61
|
+
options: ['all', 'standard', 'custom'],
|
|
62
|
+
default: 'all',
|
|
63
|
+
})(),
|
|
64
|
+
namespace: Flags.string({
|
|
65
|
+
summary: messages.getMessage('flags.namespace.summary'),
|
|
66
|
+
char: 'n',
|
|
67
|
+
}),
|
|
68
|
+
pattern: Flags.string({
|
|
69
|
+
summary: messages.getMessage('flags.pattern.summary'),
|
|
70
|
+
char: 'p',
|
|
71
|
+
}),
|
|
72
|
+
'with-records': Flags.boolean({
|
|
73
|
+
summary: messages.getMessage('flags.with-records.summary'),
|
|
74
|
+
default: false,
|
|
75
|
+
}),
|
|
76
|
+
'without-records': Flags.boolean({
|
|
77
|
+
summary: messages.getMessage('flags.without-records.summary'),
|
|
78
|
+
default: false,
|
|
79
|
+
}),
|
|
80
|
+
'with-owner': Flags.boolean({
|
|
81
|
+
summary: messages.getMessage('flags.with-owner.summary'),
|
|
82
|
+
default: false,
|
|
83
|
+
}),
|
|
84
|
+
'with-record-types': Flags.boolean({
|
|
85
|
+
summary: messages.getMessage('flags.with-record-types.summary'),
|
|
86
|
+
default: false,
|
|
87
|
+
}),
|
|
88
|
+
'with-business-process': Flags.boolean({
|
|
89
|
+
summary: messages.getMessage('flags.with-business-process.summary'),
|
|
90
|
+
default: false,
|
|
91
|
+
}),
|
|
92
|
+
'with-fields': Flags.boolean({
|
|
93
|
+
summary: messages.getMessage('flags.with-fields.summary'),
|
|
94
|
+
default: false,
|
|
95
|
+
}),
|
|
96
|
+
'with-references': Flags.boolean({
|
|
97
|
+
summary: messages.getMessage('flags.with-references.summary'),
|
|
98
|
+
default: false,
|
|
99
|
+
}),
|
|
100
|
+
'with-contact-points': Flags.boolean({
|
|
101
|
+
summary: messages.getMessage('flags.with-contact-points.summary'),
|
|
102
|
+
default: false,
|
|
103
|
+
}),
|
|
104
|
+
classification: Flags.option({
|
|
105
|
+
summary: messages.getMessage('flags.classification.summary'),
|
|
106
|
+
char: 'c',
|
|
107
|
+
options: ['customer', 'internal', 'all'],
|
|
108
|
+
default: 'all',
|
|
109
|
+
})(),
|
|
110
|
+
'min-records': Flags.integer({
|
|
111
|
+
summary: messages.getMessage('flags.min-records.summary'),
|
|
112
|
+
min: 0,
|
|
113
|
+
default: 0,
|
|
114
|
+
}),
|
|
115
|
+
sort: Flags.option({
|
|
116
|
+
summary: messages.getMessage('flags.sort.summary'),
|
|
117
|
+
char: 's',
|
|
118
|
+
options: ['name', 'recordCount', 'label'],
|
|
119
|
+
default: 'recordCount',
|
|
120
|
+
})(),
|
|
121
|
+
limit: Flags.integer({
|
|
122
|
+
summary: messages.getMessage('flags.limit.summary'),
|
|
123
|
+
char: 'l',
|
|
124
|
+
min: 1,
|
|
125
|
+
default: 50,
|
|
126
|
+
}),
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* Executes the object list command.
|
|
130
|
+
*
|
|
131
|
+
* @returns ObjectListCommandResult with success status, summary, and object list
|
|
132
|
+
*/
|
|
133
|
+
async run() {
|
|
134
|
+
const { flags } = await this.parse(ObjectList);
|
|
135
|
+
// Validate mutually exclusive flags
|
|
136
|
+
if (flags['with-records'] && flags['without-records']) {
|
|
137
|
+
this.error(messages.getMessage('errors.mutuallyExclusiveFlags', ['--with-records', '--without-records']));
|
|
138
|
+
}
|
|
139
|
+
this.validateObjectFlagExclusions(flags);
|
|
140
|
+
const targetOrg = flags['target-org'].getUsername();
|
|
141
|
+
if (!targetOrg) {
|
|
142
|
+
this.error(messages.getMessage('errors.noTargetOrg'));
|
|
143
|
+
}
|
|
144
|
+
if (flags.sort === 'recordCount' &&
|
|
145
|
+
!flags['with-records'] &&
|
|
146
|
+
!flags['without-records'] &&
|
|
147
|
+
flags.object === undefined) {
|
|
148
|
+
this.warn(messages.getMessage('warnings.sortWithoutRecords'));
|
|
149
|
+
}
|
|
150
|
+
// Initialize services
|
|
151
|
+
const { facade: connectionFacade, soqlAdapter, restAdapter } = await this.initConnection(flags);
|
|
152
|
+
const restClient = new ProfilingRestClient(restAdapter);
|
|
153
|
+
const objectFilteringService = new ObjectFilteringService({
|
|
154
|
+
restApiAdapter: restAdapter,
|
|
155
|
+
soqlAdapter,
|
|
156
|
+
restClient,
|
|
157
|
+
});
|
|
158
|
+
const contactPointService = new ContactPointService({
|
|
159
|
+
restApiAdapter: restAdapter,
|
|
160
|
+
});
|
|
161
|
+
const objectListCommandService = new ObjectListCommandService({
|
|
162
|
+
objectFilteringService,
|
|
163
|
+
contactPointService,
|
|
164
|
+
restApiAdapter: restAdapter,
|
|
165
|
+
soqlAdapter,
|
|
166
|
+
});
|
|
167
|
+
const orgInfoService = new OrgInfoService({ connectionFacade, soqlAdapter });
|
|
168
|
+
// Display start message
|
|
169
|
+
this.log(loadingMessage(messages.getMessage('spinner.listing'), messages.getMessage('spinner.objectsNoun'), targetOrg));
|
|
170
|
+
// Determine if enrichment flags are active (spinner needed)
|
|
171
|
+
const hasEnrichment = flags['with-fields'] === true ||
|
|
172
|
+
flags['with-references'] === true ||
|
|
173
|
+
flags['with-record-types'] === true ||
|
|
174
|
+
flags['with-business-process'] === true ||
|
|
175
|
+
flags['with-contact-points'] === true;
|
|
176
|
+
if (hasEnrichment) {
|
|
177
|
+
this.spinner.start(messages.getMessage('spinner.enriching'));
|
|
178
|
+
}
|
|
179
|
+
// Execute list operation and org identity fetch in parallel
|
|
180
|
+
const [result, orgIdentityResult] = await Promise.all([
|
|
181
|
+
objectListCommandService.listObjects({
|
|
182
|
+
object: flags.object,
|
|
183
|
+
filter: flags.filter,
|
|
184
|
+
namespace: flags.namespace,
|
|
185
|
+
pattern: flags.pattern,
|
|
186
|
+
withRecords: flags['with-records'],
|
|
187
|
+
withoutRecords: flags['without-records'],
|
|
188
|
+
withOwner: flags['with-owner'],
|
|
189
|
+
withRecordTypes: flags['with-record-types'],
|
|
190
|
+
withBusinessProcess: flags['with-business-process'],
|
|
191
|
+
includeFieldCounts: flags['with-fields'],
|
|
192
|
+
includeReferences: flags['with-references'],
|
|
193
|
+
withContactPoints: flags['with-contact-points'],
|
|
194
|
+
classification: flags.classification,
|
|
195
|
+
minRecords: flags['min-records'],
|
|
196
|
+
sort: flags.sort,
|
|
197
|
+
limit: flags.limit,
|
|
198
|
+
onProgress: hasEnrichment
|
|
199
|
+
? (message) => {
|
|
200
|
+
this.spinner.status = message;
|
|
201
|
+
}
|
|
202
|
+
: undefined,
|
|
203
|
+
}),
|
|
204
|
+
orgInfoService.getOrgIdentity(),
|
|
205
|
+
]);
|
|
206
|
+
if (hasEnrichment) {
|
|
207
|
+
this.spinner.stop();
|
|
208
|
+
}
|
|
209
|
+
if (!result.success) {
|
|
210
|
+
this.error(result.message ?? messages.getMessage('errors.listFailed'), { code: result.errorCode });
|
|
211
|
+
}
|
|
212
|
+
// Handle org identity non-fatally
|
|
213
|
+
let orgIdentity;
|
|
214
|
+
if (!orgIdentityResult.success) {
|
|
215
|
+
this.warn(messages.getMessage('errors.orgIdentityFailed'));
|
|
216
|
+
}
|
|
217
|
+
else {
|
|
218
|
+
orgIdentity = orgIdentityResult.data;
|
|
219
|
+
}
|
|
220
|
+
// Display results via extracted display module
|
|
221
|
+
displayResults(this.log.bind(this), result.data, orgIdentity, connectionFacade.instanceUrl, targetOrg);
|
|
222
|
+
return buildCommandResult(result.data, flags, orgIdentity, connectionFacade.instanceUrl, result.metadata);
|
|
223
|
+
}
|
|
224
|
+
validateObjectFlagExclusions(flags) {
|
|
225
|
+
if (flags.object === undefined)
|
|
226
|
+
return;
|
|
227
|
+
if (flags.filter !== 'all')
|
|
228
|
+
this.error(messages.getMessage('errors.mutuallyExclusiveFlags', ['--object', '--filter']));
|
|
229
|
+
if (flags.namespace !== undefined)
|
|
230
|
+
this.error(messages.getMessage('errors.mutuallyExclusiveFlags', ['--object', '--namespace']));
|
|
231
|
+
if (flags.pattern !== undefined)
|
|
232
|
+
this.error(messages.getMessage('errors.mutuallyExclusiveFlags', ['--object', '--pattern']));
|
|
233
|
+
if (flags['without-records'])
|
|
234
|
+
this.error(messages.getMessage('errors.mutuallyExclusiveFlags', ['--object', '--without-records']));
|
|
235
|
+
if (flags['min-records'] > 0)
|
|
236
|
+
this.error(messages.getMessage('errors.mutuallyExclusiveFlags', ['--object', '--min-records']));
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../src/commands/cuneiform/object/list.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AACrF,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EACL,wBAAwB,GAGzB,MAAM,+CAA+C,CAAC;AACvD,OAAO,EAAE,cAAc,EAAoB,MAAM,qCAAqC,CAAC;AACvF,OAAO,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE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YACxB,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,+BAA+B,EAAE,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;QAC7F,IAAI,KAAK,CAAC,SAAS,KAAK,SAAS;YAC/B,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,+BAA+B,EAAE,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAChG,IAAI,KAAK,CAAC,OAAO,KAAK,SAAS;YAC7B,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,+BAA+B,EAAE,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;QAC9F,IAAI,KAAK,CAAC,iBAAiB,CAAC;YAC1B,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,+BAA+B,EAAE,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;QACtG,IAAI,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC;YAC1B,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,UAAU,CAAC,+BAA+B,EAAE,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IACpG,CAAC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { CuneiformCommand } from '../../../base/cuneiform-command.js';
|
|
2
|
+
import { type OrgDetailsResult } from '../../../operations/OrgDetailsOperation.js';
|
|
3
|
+
export type { OrgDetailsResult };
|
|
4
|
+
/**
|
|
5
|
+
* Displays comprehensive Salesforce org configuration details.
|
|
6
|
+
*
|
|
7
|
+
* Use this command to:
|
|
8
|
+
* - Identify org type and edition
|
|
9
|
+
* - Check Cuneiform for Salesforce installation status
|
|
10
|
+
* - Detect installed Salesforce Clouds
|
|
11
|
+
* - Discover installed namespaces and packages
|
|
12
|
+
* - Review API usage limits
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```bash
|
|
16
|
+
* # Display org details
|
|
17
|
+
* sf cuneiform org details --target-org myOrg
|
|
18
|
+
*
|
|
19
|
+
* # Output as JSON
|
|
20
|
+
* sf cuneiform org details --target-org myOrg --json
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export default class OrgDetails extends CuneiformCommand<OrgDetailsResult> {
|
|
24
|
+
static readonly summary: string;
|
|
25
|
+
static readonly description: string;
|
|
26
|
+
static readonly examples: string[];
|
|
27
|
+
static readonly flags: {
|
|
28
|
+
'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
29
|
+
'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
30
|
+
sections: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Resolves the limits display mode from sections filter.
|
|
34
|
+
* Returns 'default' for 7 profiling-relevant limits, 'all' for grouped, or a group key.
|
|
35
|
+
*/
|
|
36
|
+
private static resolveLimitsMode;
|
|
37
|
+
/**
|
|
38
|
+
* Builds contextual object list command suggestions based on org data.
|
|
39
|
+
* Returns 1-3 label/flags pairs, most relevant first.
|
|
40
|
+
*
|
|
41
|
+
* Selection logic:
|
|
42
|
+
* - Always: --with-records
|
|
43
|
+
* - Namespaces + package clouds: --namespace <top cloud>
|
|
44
|
+
* - Namespaces, no clouds: --namespace <largest namespace>
|
|
45
|
+
* - No namespaces: --filter custom
|
|
46
|
+
* - With namespaces: --filter standard --with-records --classification customer
|
|
47
|
+
*/
|
|
48
|
+
private static buildObjectListSuggestions;
|
|
49
|
+
/**
|
|
50
|
+
* Executes the org details command.
|
|
51
|
+
*
|
|
52
|
+
* @returns OrgDetailsResult with comprehensive org information
|
|
53
|
+
*/
|
|
54
|
+
run(): Promise<OrgDetailsResult>;
|
|
55
|
+
/**
|
|
56
|
+
* Displays all output sections, filtered by the optional sections list.
|
|
57
|
+
*/
|
|
58
|
+
private displayAllSections;
|
|
59
|
+
/**
|
|
60
|
+
* Displays contextual next steps with tailored object list commands.
|
|
61
|
+
*/
|
|
62
|
+
private displayNextSteps;
|
|
63
|
+
/**
|
|
64
|
+
* Displays identity information.
|
|
65
|
+
*/
|
|
66
|
+
private displayIdentity;
|
|
67
|
+
/**
|
|
68
|
+
* Displays Cuneiform for Salesforce status.
|
|
69
|
+
*/
|
|
70
|
+
private displayCuneiform;
|
|
71
|
+
/**
|
|
72
|
+
* Displays org features.
|
|
73
|
+
*/
|
|
74
|
+
private displayFeatures;
|
|
75
|
+
/**
|
|
76
|
+
* Displays detected clouds.
|
|
77
|
+
*/
|
|
78
|
+
private displayClouds;
|
|
79
|
+
/**
|
|
80
|
+
* Displays namespace summary.
|
|
81
|
+
*/
|
|
82
|
+
private displayNamespaces;
|
|
83
|
+
/**
|
|
84
|
+
* Displays business processes with record type associations.
|
|
85
|
+
*/
|
|
86
|
+
private displayProcesses;
|
|
87
|
+
/**
|
|
88
|
+
* Displays API limits — default (7 key limits), all (grouped), or a specific group.
|
|
89
|
+
*/
|
|
90
|
+
private displayLimits;
|
|
91
|
+
/**
|
|
92
|
+
* Displays the 7 profiling-relevant limits (default mode).
|
|
93
|
+
*/
|
|
94
|
+
private displayDefaultLimits;
|
|
95
|
+
/**
|
|
96
|
+
* Displays grouped limits with sub-headers per category.
|
|
97
|
+
*/
|
|
98
|
+
private displayGroupedLimits;
|
|
99
|
+
}
|