@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,108 @@
|
|
|
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
|
+
/**
|
|
9
|
+
* Error codes specific to list operations.
|
|
10
|
+
*/
|
|
11
|
+
export const ListErrorCodes = {
|
|
12
|
+
/** Service query failed (non-exception failure) */
|
|
13
|
+
LIST_FAILED: 'LIST_FAILED',
|
|
14
|
+
/** Operation failed unexpectedly (exception) */
|
|
15
|
+
OPERATION_FAILED: 'LIST_OPERATION_FAILED',
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Orchestrates listing of profiling definitions.
|
|
19
|
+
*
|
|
20
|
+
* Follows the 4-layer architecture: Command -> Operation -> Service -> API
|
|
21
|
+
* This operation layer handles:
|
|
22
|
+
* 1. Accepts parsed command flags as ListOptions
|
|
23
|
+
* 2. Delegates to ProfilingDefinitionService.listDefinitions()
|
|
24
|
+
* 3. Returns ServiceResult<DefinitionListResult> with timing metadata
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```typescript
|
|
28
|
+
* const operation = new DefinitionListOperation(definitionService);
|
|
29
|
+
* const result = await operation.execute({
|
|
30
|
+
* filter: { status: 'active', objects: ['Account'] },
|
|
31
|
+
* pagination: { limit: 10, offset: 0 },
|
|
32
|
+
* sort: { field: 'name', direction: 'asc' }
|
|
33
|
+
* });
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
export class DefinitionListOperation {
|
|
37
|
+
definitionService;
|
|
38
|
+
logger;
|
|
39
|
+
/**
|
|
40
|
+
* Creates a new DefinitionListOperation.
|
|
41
|
+
*
|
|
42
|
+
* @param definitionService - The ProfilingDefinitionService instance for querying definitions
|
|
43
|
+
* @param logger - Optional logger for debug output
|
|
44
|
+
*/
|
|
45
|
+
constructor(definitionService, logger) {
|
|
46
|
+
this.definitionService = definitionService;
|
|
47
|
+
this.logger = logger;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Executes the definition list operation.
|
|
51
|
+
*
|
|
52
|
+
* Returns a ServiceResult with success=false and one of the following error codes on failure:
|
|
53
|
+
* - LIST_FAILED: When the underlying service query returns a failure result
|
|
54
|
+
* - OPERATION_FAILED: When an unexpected exception occurs
|
|
55
|
+
*
|
|
56
|
+
* @param options - List options (filter, pagination, sort)
|
|
57
|
+
* @returns ServiceResult containing DefinitionListResult or error details
|
|
58
|
+
*/
|
|
59
|
+
async execute(options) {
|
|
60
|
+
const startTime = Date.now();
|
|
61
|
+
const emptyResult = {
|
|
62
|
+
definitions: [],
|
|
63
|
+
totalCount: 0,
|
|
64
|
+
summary: { activeCount: 0, inactiveCount: 0, profiledCount: 0, notProfiledCount: 0 },
|
|
65
|
+
};
|
|
66
|
+
try {
|
|
67
|
+
this.logger?.log('Starting definition list operation');
|
|
68
|
+
const listResult = await this.definitionService.listDefinitions({
|
|
69
|
+
filter: options.filter,
|
|
70
|
+
pagination: options.pagination,
|
|
71
|
+
sort: options.sort,
|
|
72
|
+
});
|
|
73
|
+
const duration = Date.now() - startTime;
|
|
74
|
+
if (!listResult.success) {
|
|
75
|
+
const errorMessage = listResult.message ?? 'Unknown error';
|
|
76
|
+
this.logger?.log(`Definition list failed: ${errorMessage}`);
|
|
77
|
+
return {
|
|
78
|
+
success: false,
|
|
79
|
+
data: emptyResult,
|
|
80
|
+
errorCode: ListErrorCodes.LIST_FAILED,
|
|
81
|
+
message: listResult.message ?? 'Definition list query failed',
|
|
82
|
+
metadata: { duration },
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
const { definitions, totalCount, summary } = listResult.data;
|
|
86
|
+
this.logger?.log(`Definition list completed: ${String(definitions.length)} definitions found`);
|
|
87
|
+
return {
|
|
88
|
+
success: true,
|
|
89
|
+
data: { definitions, totalCount, summary },
|
|
90
|
+
message: `Found ${String(totalCount)} definitions`,
|
|
91
|
+
metadata: { duration },
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
catch (error) {
|
|
95
|
+
const duration = Date.now() - startTime;
|
|
96
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
97
|
+
this.logger?.log(`Definition list failed: ${errorMessage}`);
|
|
98
|
+
return {
|
|
99
|
+
success: false,
|
|
100
|
+
data: emptyResult,
|
|
101
|
+
errorCode: ListErrorCodes.OPERATION_FAILED,
|
|
102
|
+
message: `Definition list failed: ${errorMessage}`,
|
|
103
|
+
metadata: { duration },
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=DefinitionListOperation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DefinitionListOperation.js","sourceRoot":"","sources":["../../src/operations/DefinitionListOperation.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import { type ServiceResult } from '../models/service-result.js';
|
|
2
|
+
import { ProfilingDefinitionService, type DefinitionType, type ProfilingStatus, type DeleteSkipReason, type DeleteFailure, type DeleteProgressEvent } from '../services/ProfilingDefinitionService.js';
|
|
3
|
+
/**
|
|
4
|
+
* Options for the definition purge operation.
|
|
5
|
+
*
|
|
6
|
+
* Selection modes:
|
|
7
|
+
* - `keys` — delete specific definitions by key (exclusive, all other flags ignored)
|
|
8
|
+
* - `all` — fetch all definitions (optionally narrowed by filters)
|
|
9
|
+
* - Filters alone — fetch matching definitions via inclusive AND logic
|
|
10
|
+
*
|
|
11
|
+
* Filters that map to SOQL (server-side): objectNames, pattern, category, status, isActive, method (as type)
|
|
12
|
+
* Filters applied client-side after fetch: filter (standard/custom — derived from __c suffix), namespace (string-prefix on objectName)
|
|
13
|
+
*/
|
|
14
|
+
/** Canonical message returned when the user declines the purge confirmation prompt. */
|
|
15
|
+
export declare const PURGE_CANCELLED_MESSAGE = "Purge cancelled by user.";
|
|
16
|
+
export type PurgeOptions = {
|
|
17
|
+
/** Target org username or alias */
|
|
18
|
+
targetOrg: string;
|
|
19
|
+
/** Definition keys to delete (e.g., PD-0001) — exclusive mode, all other flags ignored */
|
|
20
|
+
keys?: string[];
|
|
21
|
+
/** Purge all definitions (can be combined with filter flags to narrow) */
|
|
22
|
+
all?: boolean;
|
|
23
|
+
/** Filter by target object API names (comma-delimited from CLI) */
|
|
24
|
+
objectNames?: string[];
|
|
25
|
+
/** Filter by object type: standard or custom (client-side) */
|
|
26
|
+
filter?: 'standard' | 'custom';
|
|
27
|
+
/** Filter by definition name pattern with SOQL LIKE (e.g., Account%) */
|
|
28
|
+
pattern?: string;
|
|
29
|
+
/** Filter by definition method/type: metadata, historical, or comparative (client-side) */
|
|
30
|
+
method?: DefinitionType;
|
|
31
|
+
/** Filter by category */
|
|
32
|
+
category?: string;
|
|
33
|
+
/** Filter by profiling status */
|
|
34
|
+
status?: ProfilingStatus;
|
|
35
|
+
/** Filter by object namespace prefix (client-side) */
|
|
36
|
+
namespace?: string;
|
|
37
|
+
/** Maximum number of definitions to process */
|
|
38
|
+
limit?: number;
|
|
39
|
+
/** Filter by active status */
|
|
40
|
+
isActive?: boolean;
|
|
41
|
+
/** Preview mode — categorize without deleting */
|
|
42
|
+
dryRun?: boolean;
|
|
43
|
+
/** Skip interactive confirmation prompt */
|
|
44
|
+
noPrompt?: boolean;
|
|
45
|
+
/** Progress callback for per-definition status updates */
|
|
46
|
+
onProgress?: (event: DeleteProgressEvent) => void;
|
|
47
|
+
/** Callback invoked after definitions are retrieved, reporting count and max label length */
|
|
48
|
+
onDefinitionsFound?: (count: number, maxLabelLength: number) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Callback invoked after categorization but before deletion.
|
|
51
|
+
* Receives the categorized preview data and returns whether to proceed with deletion.
|
|
52
|
+
* If not provided or returns true, deletion proceeds. If returns false, operation aborts.
|
|
53
|
+
*/
|
|
54
|
+
onPreviewReady?: (preview: PreviewData) => Promise<boolean>;
|
|
55
|
+
/** Optional logger for debug output */
|
|
56
|
+
logger?: Console;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Preview entry for a single definition in dry-run mode.
|
|
60
|
+
*/
|
|
61
|
+
export type PurgePreviewEntry = {
|
|
62
|
+
id: string;
|
|
63
|
+
key: string;
|
|
64
|
+
name: string;
|
|
65
|
+
objectName: string;
|
|
66
|
+
status: string;
|
|
67
|
+
action: 'delete' | 'skip';
|
|
68
|
+
reason?: string;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Dry-run preview summary.
|
|
72
|
+
*/
|
|
73
|
+
export type PurgePreview = {
|
|
74
|
+
deletable: number;
|
|
75
|
+
blockedBySummaries: number;
|
|
76
|
+
definitions: PurgePreviewEntry[];
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Data passed to the onPreviewReady callback for user confirmation.
|
|
80
|
+
*/
|
|
81
|
+
export type PreviewData = {
|
|
82
|
+
/** Definitions eligible for deletion */
|
|
83
|
+
deletable: BlockedDefinition[];
|
|
84
|
+
/** Definitions blocked by related summaries */
|
|
85
|
+
blockedBySummaries: BlockedDefinition[];
|
|
86
|
+
/** Total definitions matched by filters */
|
|
87
|
+
total: number;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Blocked definition info for display.
|
|
91
|
+
*/
|
|
92
|
+
export type BlockedDefinition = {
|
|
93
|
+
id: string;
|
|
94
|
+
key: string;
|
|
95
|
+
name: string;
|
|
96
|
+
objectName: string;
|
|
97
|
+
objectLabel?: string;
|
|
98
|
+
category?: string;
|
|
99
|
+
timeCategory?: string;
|
|
100
|
+
segmentCategory?: string;
|
|
101
|
+
status: string;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Result of a definition purge operation.
|
|
105
|
+
*/
|
|
106
|
+
export type PurgeResult = {
|
|
107
|
+
/** Number of definitions successfully deleted */
|
|
108
|
+
deleted: number;
|
|
109
|
+
/** Number of definitions skipped (has summaries or other reasons) */
|
|
110
|
+
skipped: number;
|
|
111
|
+
/** Number of definitions that failed to delete */
|
|
112
|
+
failed: number;
|
|
113
|
+
/** Total number of definitions processed (including blocked) */
|
|
114
|
+
total: number;
|
|
115
|
+
/** Details about why each definition was skipped */
|
|
116
|
+
skipReasons: DeleteSkipReason[];
|
|
117
|
+
/** Details about each deletion failure */
|
|
118
|
+
failures: DeleteFailure[];
|
|
119
|
+
/** Definitions blocked by related summaries (pre-categorized) */
|
|
120
|
+
blockedBySummaries: BlockedDefinition[];
|
|
121
|
+
/** Whether this was a dry-run (no deletions performed) */
|
|
122
|
+
dryRun?: boolean;
|
|
123
|
+
/** Dry-run preview (only present when dryRun is true) */
|
|
124
|
+
preview?: PurgePreview;
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Error codes specific to purge operations.
|
|
128
|
+
*/
|
|
129
|
+
export declare const PurgeErrorCodes: {
|
|
130
|
+
/** No selection criteria provided (no --all, --keys, or filters) */
|
|
131
|
+
readonly NO_SELECTION_CRITERIA: "PURGE_NO_SELECTION_CRITERIA";
|
|
132
|
+
/** Query for definitions failed */
|
|
133
|
+
readonly QUERY_FAILED: "PURGE_QUERY_FAILED";
|
|
134
|
+
/** No eligible definitions found */
|
|
135
|
+
readonly NO_ELIGIBLE_DEFINITIONS: "PURGE_NO_ELIGIBLE_DEFINITIONS";
|
|
136
|
+
/** Delete operation failed */
|
|
137
|
+
readonly DELETE_FAILED: "PURGE_DELETE_FAILED";
|
|
138
|
+
/** User cancelled the operation */
|
|
139
|
+
readonly USER_CANCELLED: "PURGE_USER_CANCELLED";
|
|
140
|
+
/** Operation failed unexpectedly */
|
|
141
|
+
readonly OPERATION_FAILED: "PURGE_OPERATION_FAILED";
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* Orchestrates purging of profiling definitions.
|
|
145
|
+
*
|
|
146
|
+
* Follows the 4-layer architecture: Command → Operation → Service → API
|
|
147
|
+
* This operation layer handles:
|
|
148
|
+
* 1. Validates selection mode (IDs, --all, or filters)
|
|
149
|
+
* 2. Fetches definitions using getAllDefinitions() with inclusive AND filters
|
|
150
|
+
* 3. Pre-categorizes into deletable vs blocked (by summaries)
|
|
151
|
+
* 4. Applies client-side filters (object type, method)
|
|
152
|
+
* 5. Optionally previews (dry-run) or executes deletion
|
|
153
|
+
* 6. Reports per-definition progress and statistics
|
|
154
|
+
*/
|
|
155
|
+
export declare class DefinitionPurgeOperation {
|
|
156
|
+
private readonly definitionService;
|
|
157
|
+
private readonly logger?;
|
|
158
|
+
constructor(definitionService: ProfilingDefinitionService, logger?: Console | undefined);
|
|
159
|
+
/**
|
|
160
|
+
* Checks if any filter flags are specified.
|
|
161
|
+
*/
|
|
162
|
+
private static hasFilterFlags;
|
|
163
|
+
/**
|
|
164
|
+
* Builds GetDefinitionsOptions from purge options (server-side filters only).
|
|
165
|
+
*/
|
|
166
|
+
private static buildQueryOptions;
|
|
167
|
+
/**
|
|
168
|
+
* Applies client-side filters that can't be expressed in SOQL.
|
|
169
|
+
*/
|
|
170
|
+
private static applyClientFilters;
|
|
171
|
+
/**
|
|
172
|
+
* Categorizes definitions into deletable and blocked-by-summaries.
|
|
173
|
+
*
|
|
174
|
+
* Definitions can be deleted regardless of profiling status as long as
|
|
175
|
+
* they have no associated summaries.
|
|
176
|
+
*/
|
|
177
|
+
private static categorize;
|
|
178
|
+
/**
|
|
179
|
+
* Maps a definition to a BlockedDefinition for display.
|
|
180
|
+
*/
|
|
181
|
+
private static toBlockedDefinition;
|
|
182
|
+
/**
|
|
183
|
+
* Creates the empty result structure.
|
|
184
|
+
*/
|
|
185
|
+
private static emptyResult;
|
|
186
|
+
/**
|
|
187
|
+
* Executes the definition purge operation.
|
|
188
|
+
*/
|
|
189
|
+
execute(options: PurgeOptions): Promise<ServiceResult<PurgeResult>>;
|
|
190
|
+
/**
|
|
191
|
+
* Executes purge in key-list mode.
|
|
192
|
+
* Fetches all definitions, matches by key, ignores all other flags.
|
|
193
|
+
*/
|
|
194
|
+
private executeKeyMode;
|
|
195
|
+
/**
|
|
196
|
+
* Executes purge in filter mode (--all or filter flags).
|
|
197
|
+
*/
|
|
198
|
+
private executeFilterMode;
|
|
199
|
+
}
|