@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,322 @@
|
|
|
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 { ProfilingDefinitionService, } from '../../services/ProfilingDefinitionService.js';
|
|
11
|
+
import { ProfilingExecutionService } from '../../services/ProfilingExecutionService.js';
|
|
12
|
+
import { ProfileOperation, ProfileErrorCodes } from '../../operations/ProfileOperation.js';
|
|
13
|
+
import { OrgInfoService } from '../../services/OrgInfoService.js';
|
|
14
|
+
import { renderOrgContext, renderSummaryBox, displaySummaryBox, sectionHeader } from '../../utils/formatting/index.js';
|
|
15
|
+
import { formatNumber } from '../../utils/formatting/numbers.js';
|
|
16
|
+
import { CuneiformCommand } from '../../base/cuneiform-command.js';
|
|
17
|
+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
18
|
+
const messages = Messages.loadMessages('@peernova/cuneiform-sf', 'profile');
|
|
19
|
+
/**
|
|
20
|
+
* Executes profiling operations on Cuneiform profiling definitions.
|
|
21
|
+
*
|
|
22
|
+
* Use this command to:
|
|
23
|
+
* - Profile a single definition by key or ID
|
|
24
|
+
* - Profile multiple definitions in bulk by method
|
|
25
|
+
* - Apply filters to control which definitions are processed
|
|
26
|
+
* - Monitor progress for bulk operations
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```bash
|
|
30
|
+
* # Profile a single definition by key
|
|
31
|
+
* sf cuneiform profile --target-org myOrg --keys PD-0001
|
|
32
|
+
*
|
|
33
|
+
* # Profile all metadata definitions
|
|
34
|
+
* sf cuneiform profile --target-org myOrg --method metadata --parallel 10
|
|
35
|
+
*
|
|
36
|
+
* # Profile historical definitions with filters
|
|
37
|
+
* sf cuneiform profile --target-org myOrg --method historical --status "NOT PROFILED" --limit 5
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
// eslint-disable-next-line sf-plugin/only-extend-SfCommand -- CuneiformCommand extends SfCommand with shared access gate logic
|
|
41
|
+
export default class Profile extends CuneiformCommand {
|
|
42
|
+
static summary = messages.getMessage('summary');
|
|
43
|
+
static description = messages.getMessage('description');
|
|
44
|
+
static examples = messages.getMessages('examples');
|
|
45
|
+
// eslint-disable-next-line sf-plugin/spread-base-flags -- CuneiformCommand has no additional flags to spread
|
|
46
|
+
static flags = {
|
|
47
|
+
'target-org': Flags.requiredOrg({
|
|
48
|
+
summary: messages.getMessage('flags.target-org.summary'),
|
|
49
|
+
char: 'o',
|
|
50
|
+
required: true,
|
|
51
|
+
}),
|
|
52
|
+
'api-version': Flags.orgApiVersion(),
|
|
53
|
+
keys: Flags.string({
|
|
54
|
+
summary: messages.getMessage('flags.keys.summary'),
|
|
55
|
+
char: 'k',
|
|
56
|
+
multiple: true,
|
|
57
|
+
aliases: ['key'],
|
|
58
|
+
deprecateAliases: true,
|
|
59
|
+
exclusive: ['id', 'method'],
|
|
60
|
+
}),
|
|
61
|
+
id: Flags.string({
|
|
62
|
+
summary: messages.getMessage('flags.id.summary'),
|
|
63
|
+
exclusive: ['keys', 'method'],
|
|
64
|
+
}),
|
|
65
|
+
method: Flags.option({
|
|
66
|
+
summary: messages.getMessage('flags.method.summary'),
|
|
67
|
+
char: 't',
|
|
68
|
+
options: ['metadata', 'historical', 'comparative'],
|
|
69
|
+
aliases: ['type'],
|
|
70
|
+
deprecateAliases: true,
|
|
71
|
+
exclusive: ['keys', 'id'],
|
|
72
|
+
})(),
|
|
73
|
+
status: Flags.option({
|
|
74
|
+
summary: messages.getMessage('flags.status.summary'),
|
|
75
|
+
char: 's',
|
|
76
|
+
options: ['NOT PROFILED', 'IN PROGRESS', 'SUCCESS', 'COMPLETE w/ FAILURES', 'ERROR'],
|
|
77
|
+
})(),
|
|
78
|
+
namespace: Flags.string({
|
|
79
|
+
summary: messages.getMessage('flags.namespace.summary'),
|
|
80
|
+
char: 'n',
|
|
81
|
+
}),
|
|
82
|
+
category: Flags.string({
|
|
83
|
+
summary: messages.getMessage('flags.category.summary'),
|
|
84
|
+
char: 'c',
|
|
85
|
+
}),
|
|
86
|
+
'time-category': Flags.string({
|
|
87
|
+
summary: messages.getMessage('flags.time-category.summary'),
|
|
88
|
+
}),
|
|
89
|
+
'segment-category': Flags.string({
|
|
90
|
+
summary: messages.getMessage('flags.segment-category.summary'),
|
|
91
|
+
}),
|
|
92
|
+
limit: Flags.integer({
|
|
93
|
+
summary: messages.getMessage('flags.limit.summary'),
|
|
94
|
+
char: 'l',
|
|
95
|
+
min: 1,
|
|
96
|
+
default: 50,
|
|
97
|
+
}),
|
|
98
|
+
'skip-empty': Flags.boolean({
|
|
99
|
+
summary: messages.getMessage('flags.skip-empty.summary'),
|
|
100
|
+
default: true,
|
|
101
|
+
allowNo: true,
|
|
102
|
+
}),
|
|
103
|
+
parallel: Flags.integer({
|
|
104
|
+
summary: messages.getMessage('flags.parallel.summary'),
|
|
105
|
+
default: 5,
|
|
106
|
+
min: 1,
|
|
107
|
+
max: 10,
|
|
108
|
+
}),
|
|
109
|
+
format: Flags.option({
|
|
110
|
+
summary: messages.getMessage('flags.format.summary'),
|
|
111
|
+
options: ['table', 'json'],
|
|
112
|
+
default: 'table',
|
|
113
|
+
})(),
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Maps operation error codes to i18n message bundle keys.
|
|
117
|
+
* Used by the inherited `resolveErrorMessage()` for consistent error resolution.
|
|
118
|
+
*/
|
|
119
|
+
static ERROR_CODE_MAP = {
|
|
120
|
+
[ProfileErrorCodes.NO_SELECTION]: 'errors.noSelection',
|
|
121
|
+
[ProfileErrorCodes.INVALID_SELECTION]: 'errors.invalidSelection',
|
|
122
|
+
[ProfileErrorCodes.INVALID_ID]: 'errors.invalidId',
|
|
123
|
+
[ProfileErrorCodes.DEFINITION_NOT_FOUND]: 'errors.definitionNotFound',
|
|
124
|
+
[ProfileErrorCodes.INVALID_PARALLEL]: 'errors.invalidParallel',
|
|
125
|
+
[ProfileErrorCodes.QUERY_FAILED]: 'errors.queryFailed',
|
|
126
|
+
[ProfileErrorCodes.NO_DEFINITIONS_FOUND]: 'errors.noDefinitionsFound',
|
|
127
|
+
[ProfileErrorCodes.EXECUTION_FAILED]: 'errors.executionFailed',
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* Executes the profile command.
|
|
131
|
+
*
|
|
132
|
+
* @returns ProfileCommandResult with execution statistics
|
|
133
|
+
*/
|
|
134
|
+
async run() {
|
|
135
|
+
const { flags } = await this.parse(Profile);
|
|
136
|
+
const targetOrg = flags['target-org'].getUsername();
|
|
137
|
+
if (!targetOrg) {
|
|
138
|
+
this.error('Could not determine target org username');
|
|
139
|
+
}
|
|
140
|
+
// Initialize services
|
|
141
|
+
const { facade, soqlAdapter, restAdapter } = await this.initConnection(flags);
|
|
142
|
+
const definitionService = new ProfilingDefinitionService({ soqlAdapter, restAdapter });
|
|
143
|
+
const executionService = new ProfilingExecutionService({
|
|
144
|
+
restAdapter,
|
|
145
|
+
soqlAdapter,
|
|
146
|
+
profilingDefinitionService: definitionService,
|
|
147
|
+
});
|
|
148
|
+
// Create operation
|
|
149
|
+
const operation = new ProfileOperation(executionService, definitionService);
|
|
150
|
+
// Fetch and display org identity
|
|
151
|
+
const orgInfoService = new OrgInfoService({ connectionFacade: facade, soqlAdapter });
|
|
152
|
+
this.spinner.start(messages.getMessage('spinner.connecting'));
|
|
153
|
+
const orgIdentityResult = await orgInfoService.getOrgIdentity();
|
|
154
|
+
this.spinner.stop();
|
|
155
|
+
if (orgIdentityResult.success) {
|
|
156
|
+
this.log('');
|
|
157
|
+
this.log(renderOrgContext({
|
|
158
|
+
orgName: orgIdentityResult.data.organizationName,
|
|
159
|
+
orgId: orgIdentityResult.data.organizationId,
|
|
160
|
+
instanceUrl: facade.instanceUrl ?? '',
|
|
161
|
+
isSandbox: orgIdentityResult.data.isSandbox ?? false,
|
|
162
|
+
}));
|
|
163
|
+
}
|
|
164
|
+
// Display configuration for bulk mode
|
|
165
|
+
if (flags.method) {
|
|
166
|
+
this.displayBulkConfiguration(flags);
|
|
167
|
+
}
|
|
168
|
+
// Build operation options
|
|
169
|
+
const operationOptions = {
|
|
170
|
+
targetOrg,
|
|
171
|
+
keys: flags.keys,
|
|
172
|
+
definitionId: flags.id,
|
|
173
|
+
type: flags.method,
|
|
174
|
+
status: flags.status,
|
|
175
|
+
namespace: flags.namespace,
|
|
176
|
+
category: flags.category,
|
|
177
|
+
timeCategory: flags['time-category'],
|
|
178
|
+
segmentCategory: flags['segment-category'],
|
|
179
|
+
limit: flags.limit,
|
|
180
|
+
skipEmpty: flags['skip-empty'],
|
|
181
|
+
parallel: flags.parallel,
|
|
182
|
+
onProgress: (message) => {
|
|
183
|
+
this.spinner.status = message;
|
|
184
|
+
},
|
|
185
|
+
};
|
|
186
|
+
// Execute operation
|
|
187
|
+
this.spinner.start('Profiling');
|
|
188
|
+
const result = await operation.execute(operationOptions);
|
|
189
|
+
this.spinner.stop();
|
|
190
|
+
// Handle failure
|
|
191
|
+
if (!result.success) {
|
|
192
|
+
const errorMessage = Profile.resolveErrorMessage(Profile.ERROR_CODE_MAP, result.errorCode, result.message, messages);
|
|
193
|
+
this.error(errorMessage, { code: result.errorCode });
|
|
194
|
+
}
|
|
195
|
+
const data = result.data;
|
|
196
|
+
// Display results
|
|
197
|
+
this.displayResults(data, targetOrg);
|
|
198
|
+
// Display warnings if any
|
|
199
|
+
if (result.warnings && result.warnings.length > 0) {
|
|
200
|
+
this.log('');
|
|
201
|
+
for (const warning of result.warnings) {
|
|
202
|
+
this.warn(warning);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
return {
|
|
206
|
+
success: true,
|
|
207
|
+
mode: data.mode,
|
|
208
|
+
executions: data.executions,
|
|
209
|
+
summary: data.summary,
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Displays bulk execution configuration.
|
|
214
|
+
*
|
|
215
|
+
* @param flags - Parsed command flags
|
|
216
|
+
*/
|
|
217
|
+
displayBulkConfiguration(flags) {
|
|
218
|
+
const entries = [{ key: 'Method', value: flags.method ?? 'all' }];
|
|
219
|
+
if (flags.status) {
|
|
220
|
+
entries.push({ key: 'Status', value: flags.status });
|
|
221
|
+
}
|
|
222
|
+
if (flags.namespace) {
|
|
223
|
+
entries.push({ key: 'Namespace', value: flags.namespace });
|
|
224
|
+
}
|
|
225
|
+
if (flags.limit !== undefined) {
|
|
226
|
+
entries.push({ key: 'Limit', value: String(flags.limit) });
|
|
227
|
+
}
|
|
228
|
+
entries.push({ key: 'Parallel threads', value: String(flags.parallel) });
|
|
229
|
+
entries.push({ key: 'Skip empty objects', value: flags['skip-empty'] ? 'yes' : 'no' });
|
|
230
|
+
this.log(renderSummaryBox({ title: 'Configuration', entries }));
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Displays profiling results.
|
|
234
|
+
*
|
|
235
|
+
* @param data - Profile result data
|
|
236
|
+
* @param targetOrg - Target org username for next-steps guidance
|
|
237
|
+
*/
|
|
238
|
+
displayResults(data, targetOrg) {
|
|
239
|
+
this.log('');
|
|
240
|
+
if (data.mode === 'single') {
|
|
241
|
+
this.displaySingleResult(data);
|
|
242
|
+
}
|
|
243
|
+
else {
|
|
244
|
+
this.displayBulkResults(data);
|
|
245
|
+
}
|
|
246
|
+
// Summary (aligned with definition purge)
|
|
247
|
+
const summaryEntries = [
|
|
248
|
+
{ key: messages.getMessage('display.summarySuccessful'), value: formatNumber(data.summary.successful) },
|
|
249
|
+
{ key: messages.getMessage('display.summaryFailedLabel'), value: formatNumber(data.summary.failed) },
|
|
250
|
+
{ key: messages.getMessage('display.summarySkippedLabel'), value: formatNumber(data.summary.skipped) },
|
|
251
|
+
{ key: messages.getMessage('display.summaryTotalLabel'), value: formatNumber(data.summary.total) },
|
|
252
|
+
];
|
|
253
|
+
displaySummaryBox(this.log.bind(this), {
|
|
254
|
+
title: messages.getMessage('display.summaryTitle'),
|
|
255
|
+
entries: summaryEntries,
|
|
256
|
+
});
|
|
257
|
+
// Next steps guidance
|
|
258
|
+
this.log('');
|
|
259
|
+
this.log(messages.getMessage('display.nextSteps', [targetOrg]));
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* Displays single-mode result.
|
|
263
|
+
*
|
|
264
|
+
* @param data - Profile result data
|
|
265
|
+
*/
|
|
266
|
+
displaySingleResult(data) {
|
|
267
|
+
this.log(sectionHeader('Result'));
|
|
268
|
+
const exec = data.executions[0];
|
|
269
|
+
this.log(messages.getMessage('display.definition', [exec.definitionKey, exec.objectName]));
|
|
270
|
+
this.log(messages.getMessage('display.status', [exec.status === 'success' ? 'Submitted' : exec.status]));
|
|
271
|
+
if (exec.requestId) {
|
|
272
|
+
this.log(messages.getMessage('display.requestId', [exec.requestId]));
|
|
273
|
+
}
|
|
274
|
+
if (exec.status === 'failed') {
|
|
275
|
+
this.log('');
|
|
276
|
+
this.warn(messages.getMessage('display.error', [exec.errorMessage ?? 'Unknown error']));
|
|
277
|
+
if (exec.resolution) {
|
|
278
|
+
this.log(messages.getMessage('display.resolution', [exec.resolution]));
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
else if (exec.status === 'skipped') {
|
|
282
|
+
this.log(messages.getMessage('display.skipReason', [exec.skipReason ?? 'Unknown']));
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Displays bulk-mode results.
|
|
287
|
+
*
|
|
288
|
+
* @param data - Profile result data
|
|
289
|
+
*/
|
|
290
|
+
displayBulkResults(data) {
|
|
291
|
+
this.log(messages.getMessage('display.processed', [String(data.executions.length)]));
|
|
292
|
+
this.log('');
|
|
293
|
+
this.log(sectionHeader('Results'));
|
|
294
|
+
// Results table
|
|
295
|
+
this.table({
|
|
296
|
+
data: data.executions.map((exec) => ({
|
|
297
|
+
key: exec.definitionKey,
|
|
298
|
+
object: exec.objectName,
|
|
299
|
+
requestId: exec.requestId ?? '-',
|
|
300
|
+
status: exec.status === 'success' ? 'Submitted' : exec.status,
|
|
301
|
+
error: exec.errorMessage ?? exec.skipReason ?? '-',
|
|
302
|
+
})),
|
|
303
|
+
columns: [
|
|
304
|
+
{ key: 'key', name: 'DEFINITION' },
|
|
305
|
+
{ key: 'object', name: 'OBJECT' },
|
|
306
|
+
{ key: 'requestId', name: 'REQUEST ID' },
|
|
307
|
+
{ key: 'status', name: 'STATUS' },
|
|
308
|
+
{ key: 'error', name: 'ERROR/REASON' },
|
|
309
|
+
],
|
|
310
|
+
});
|
|
311
|
+
// Failed executions with resolution guidance
|
|
312
|
+
const failed = data.executions.filter((e) => e.status === 'failed' && e.resolution);
|
|
313
|
+
if (failed.length > 0) {
|
|
314
|
+
this.log('');
|
|
315
|
+
this.log(messages.getMessage('display.resolutionGuidance'));
|
|
316
|
+
for (const exec of failed) {
|
|
317
|
+
this.log(` ${messages.getMessage('display.resolutionItem', [exec.definitionKey, exec.resolution])}`);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
//# sourceMappingURL=profile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.js","sourceRoot":"","sources":["../../../src/commands/cuneiform/profile.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EACL,0BAA0B,GAG3B,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AACxF,OAAO,EAAE,gBAAgB,EAAsB,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAC/G,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACvH,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAA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EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACjC,EAAE,GAAG,EAAE,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE;gBACxC,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACjC,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE;aACvC;SACF,CAAC,CAAC;QAEH,6CAA6C;QAC7C,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,QAAQ,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC;QACpF,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACtB,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YACb,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,UAAU,CAAC,4BAA4B,CAAC,CAAC,CAAC;YAC5D,KAAK,MAAM,IAAI,IAAI,MAAM,EAAE,CAAC;gBAC1B,IAAI,CAAC,GAAG,CAAC,KAAK,QAAQ,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,UAAW,CAAC,CAAC,EAAE,CAAC,CAAC;YACzG,CAAC;QACH,CAAC;IACH,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { CuneiformCommand } from '../../../base/cuneiform-command.js';
|
|
2
|
+
/**
|
|
3
|
+
* Command result type for JSON output.
|
|
4
|
+
*/
|
|
5
|
+
export type SummaryPurgeCommandResult = {
|
|
6
|
+
/** Whether the operation was successful */
|
|
7
|
+
success: boolean;
|
|
8
|
+
/** Number of summaries deleted */
|
|
9
|
+
deleted: number;
|
|
10
|
+
/** Number of summaries skipped */
|
|
11
|
+
skipped: number;
|
|
12
|
+
/** Number of summaries that failed to delete */
|
|
13
|
+
failed: number;
|
|
14
|
+
/** Total number of summaries processed */
|
|
15
|
+
total: number;
|
|
16
|
+
/** Whether this was a dry run */
|
|
17
|
+
dryRun: boolean;
|
|
18
|
+
/** Whether prune mode was active */
|
|
19
|
+
pruneMode: boolean;
|
|
20
|
+
/** Whether the operation was cancelled by the user */
|
|
21
|
+
cancelled?: boolean;
|
|
22
|
+
/** Error message if failed */
|
|
23
|
+
error?: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Purges profiling summaries from a Salesforce org.
|
|
27
|
+
*
|
|
28
|
+
* Deletes summaries matching filters or specific IDs. Only summaries with
|
|
29
|
+
* terminal profiling statuses are eligible for deletion. Cascade delete
|
|
30
|
+
* automatically removes child Field Results, Value Results, and KPI Results.
|
|
31
|
+
*
|
|
32
|
+
* Optional --prune mode preserves the latest summary per definition,
|
|
33
|
+
* only deleting older summaries.
|
|
34
|
+
*/
|
|
35
|
+
export default class SummaryPurge extends CuneiformCommand<SummaryPurgeCommandResult> {
|
|
36
|
+
static readonly summary: string;
|
|
37
|
+
static readonly description: string;
|
|
38
|
+
static readonly examples: string[];
|
|
39
|
+
static readonly flags: {
|
|
40
|
+
'target-org': import("@oclif/core/interfaces").OptionFlag<import("@salesforce/core").Org, import("@oclif/core/interfaces").CustomOptions>;
|
|
41
|
+
'api-version': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
42
|
+
all: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
43
|
+
ids: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
44
|
+
objects: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
45
|
+
category: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
46
|
+
'is-active': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
47
|
+
limit: import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
48
|
+
prune: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
49
|
+
'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
50
|
+
'no-prompt': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
51
|
+
format: import("@oclif/core/interfaces").OptionFlag<"table" | "json", import("@oclif/core/interfaces").CustomOptions>;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Maps error codes to i18n message keys.
|
|
55
|
+
*/
|
|
56
|
+
private static readonly ERROR_CODE_MAP;
|
|
57
|
+
/**
|
|
58
|
+
* Renders a padded row for the progress table.
|
|
59
|
+
*/
|
|
60
|
+
private static formatProgressRow;
|
|
61
|
+
/**
|
|
62
|
+
* Executes the summary purge command.
|
|
63
|
+
*/
|
|
64
|
+
run(): Promise<SummaryPurgeCommandResult>;
|
|
65
|
+
/**
|
|
66
|
+
* Displays progress events as a dynamically-sized table.
|
|
67
|
+
*/
|
|
68
|
+
private displayProgressTable;
|
|
69
|
+
/**
|
|
70
|
+
* Displays the paginated preview before user confirmation.
|
|
71
|
+
*/
|
|
72
|
+
private displayPreview;
|
|
73
|
+
/**
|
|
74
|
+
* Displays purge results.
|
|
75
|
+
*/
|
|
76
|
+
private displayResults;
|
|
77
|
+
}
|