@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,173 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared types for the `sf cuneiform object describe` command result.
|
|
3
|
+
*
|
|
4
|
+
* Extracted from the command file so that display formatters (utils layer)
|
|
5
|
+
* can consume these types without importing from the commands layer.
|
|
6
|
+
*
|
|
7
|
+
* @module models/object-describe-types
|
|
8
|
+
*/
|
|
9
|
+
import type { FieldTypeCount, NamespaceCount, RecordAgeDistribution } from '../services/ObjectDescribeService.js';
|
|
10
|
+
/**
|
|
11
|
+
* Field information for JSON output.
|
|
12
|
+
*/
|
|
13
|
+
export type FieldInfo = {
|
|
14
|
+
/** Field API name */
|
|
15
|
+
apiName: string;
|
|
16
|
+
/** Field label */
|
|
17
|
+
label: string;
|
|
18
|
+
/** Field type */
|
|
19
|
+
type: string;
|
|
20
|
+
/** Maximum length for text fields */
|
|
21
|
+
length?: number;
|
|
22
|
+
/** Whether this is a custom field */
|
|
23
|
+
isCustom: boolean;
|
|
24
|
+
/** Whether this is a formula field */
|
|
25
|
+
isFormula: boolean;
|
|
26
|
+
/** Whether this field is required */
|
|
27
|
+
isRequired: boolean;
|
|
28
|
+
/** Namespace prefix (null if standard/unmanaged) */
|
|
29
|
+
namespace: string | null;
|
|
30
|
+
/** Reference to object(s) for lookup fields */
|
|
31
|
+
referenceTo: string[] | null;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Object summary for JSON output.
|
|
35
|
+
*/
|
|
36
|
+
export type ObjectSummary = {
|
|
37
|
+
/** Object API name */
|
|
38
|
+
apiName: string;
|
|
39
|
+
/** Object label */
|
|
40
|
+
label: string;
|
|
41
|
+
/** Object plural label */
|
|
42
|
+
labelPlural: string;
|
|
43
|
+
/** Whether this is a custom object */
|
|
44
|
+
isCustom: boolean;
|
|
45
|
+
/** Namespace prefix */
|
|
46
|
+
namespace: string | null;
|
|
47
|
+
/** Record count (null if query failed) */
|
|
48
|
+
recordCount: number | null;
|
|
49
|
+
/** Whether the object is queryable */
|
|
50
|
+
queryable: boolean;
|
|
51
|
+
/** Whether the object can be profiled */
|
|
52
|
+
profileable: boolean;
|
|
53
|
+
/** Whether PersonAccount is enabled (only for Account) */
|
|
54
|
+
personAccountEnabled?: boolean;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Field summary for JSON output.
|
|
58
|
+
*/
|
|
59
|
+
export type FieldSummary = {
|
|
60
|
+
/** Total fields */
|
|
61
|
+
total: number;
|
|
62
|
+
/** Standard fields */
|
|
63
|
+
standard: number;
|
|
64
|
+
/** Custom fields */
|
|
65
|
+
custom: number;
|
|
66
|
+
/** Formula fields */
|
|
67
|
+
formula: number;
|
|
68
|
+
/** Lookup fields */
|
|
69
|
+
lookup: number;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Relationship info for JSON output.
|
|
73
|
+
*/
|
|
74
|
+
export type RelationshipInfo = {
|
|
75
|
+
/** Count of objects that reference this object */
|
|
76
|
+
referencedByCount: number;
|
|
77
|
+
/** Objects that reference this object */
|
|
78
|
+
referencedBy: Array<{
|
|
79
|
+
objectName: string;
|
|
80
|
+
fieldName: string;
|
|
81
|
+
relationshipName: string | null;
|
|
82
|
+
}>;
|
|
83
|
+
/** Lookup fields on this object */
|
|
84
|
+
lookupFields: Array<{
|
|
85
|
+
fieldName: string;
|
|
86
|
+
targetObject: string;
|
|
87
|
+
}>;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Profiling status for JSON output.
|
|
91
|
+
*/
|
|
92
|
+
export type ProfilingStatusInfo = {
|
|
93
|
+
/** Number of profiling definitions */
|
|
94
|
+
definitionCount: number;
|
|
95
|
+
/** Number of profiling summaries */
|
|
96
|
+
summaryCount?: number;
|
|
97
|
+
/** Definition details */
|
|
98
|
+
definitions: Array<{
|
|
99
|
+
name: string;
|
|
100
|
+
latestSummaryDate?: string;
|
|
101
|
+
latestStatus?: string;
|
|
102
|
+
}>;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Single object result for JSON output.
|
|
106
|
+
*/
|
|
107
|
+
export type ObjectResult = {
|
|
108
|
+
/** Object summary */
|
|
109
|
+
summary: ObjectSummary;
|
|
110
|
+
/** Record types */
|
|
111
|
+
recordTypes: Array<{
|
|
112
|
+
id: string;
|
|
113
|
+
name: string;
|
|
114
|
+
developerName: string;
|
|
115
|
+
isActive: boolean;
|
|
116
|
+
isDefault: boolean;
|
|
117
|
+
isPersonType?: boolean;
|
|
118
|
+
recordAgeDistribution?: RecordAgeDistribution;
|
|
119
|
+
}>;
|
|
120
|
+
/** Field summary */
|
|
121
|
+
fieldSummary: FieldSummary;
|
|
122
|
+
/** Field type distribution */
|
|
123
|
+
fieldTypeDistribution: FieldTypeCount[];
|
|
124
|
+
/** Namespace breakdown */
|
|
125
|
+
namespaces: NamespaceCount[];
|
|
126
|
+
/** Relationships */
|
|
127
|
+
relationships: RelationshipInfo;
|
|
128
|
+
/** Record age distribution */
|
|
129
|
+
recordAgeDistribution: RecordAgeDistribution | null;
|
|
130
|
+
/** Business processes with per-process record age distribution */
|
|
131
|
+
businessProcesses: Array<{
|
|
132
|
+
id: string;
|
|
133
|
+
name: string;
|
|
134
|
+
isActive: boolean;
|
|
135
|
+
recordTypeCount: number;
|
|
136
|
+
recordTypeIds: string[];
|
|
137
|
+
recordAgeDistribution?: RecordAgeDistribution;
|
|
138
|
+
}>;
|
|
139
|
+
/** Profiling status */
|
|
140
|
+
profilingStatus: ProfilingStatusInfo;
|
|
141
|
+
/** Detailed fields (only with --with-fields) */
|
|
142
|
+
fields: FieldInfo[] | null;
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* Aggregate totals across all described objects.
|
|
146
|
+
*/
|
|
147
|
+
export type ObjectDescribeTotals = {
|
|
148
|
+
/** Number of objects described */
|
|
149
|
+
objectsDescribed: number;
|
|
150
|
+
/** Total fields across all objects */
|
|
151
|
+
totalFields: number;
|
|
152
|
+
/** Total standard fields across all objects */
|
|
153
|
+
totalStandardFields: number;
|
|
154
|
+
/** Total custom fields across all objects */
|
|
155
|
+
totalCustomFields: number;
|
|
156
|
+
/** Total formula fields across all objects */
|
|
157
|
+
totalFormulaFields: number;
|
|
158
|
+
/** Total lookup fields across all objects */
|
|
159
|
+
totalLookupFields: number;
|
|
160
|
+
/** Total active record types across all objects */
|
|
161
|
+
totalRecordTypes: number;
|
|
162
|
+
/** Total records across all objects (null if any object count unavailable) */
|
|
163
|
+
totalRecords: number | null;
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* Command result type for JSON output.
|
|
167
|
+
*/
|
|
168
|
+
export type ObjectDescribeCommandResult = {
|
|
169
|
+
/** Array of object results */
|
|
170
|
+
objects: ObjectResult[];
|
|
171
|
+
/** Aggregate totals across all objects */
|
|
172
|
+
totals: ObjectDescribeTotals;
|
|
173
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=object-describe-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"object-describe-types.js","sourceRoot":"","sources":["../../src/models/object-describe-types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model types for profiling request management.
|
|
3
|
+
*
|
|
4
|
+
* Represents `pnova__Profiling_Request__c` records used by the
|
|
5
|
+
* ProfileRequestService to list and cancel queued profiling requests.
|
|
6
|
+
*
|
|
7
|
+
* @module models/profile-request-types
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Status values for a profiling request record.
|
|
11
|
+
*
|
|
12
|
+
* The ISV `Prop_RequestStatus__c` restricted picklist has exactly 4 values.
|
|
13
|
+
* Source: Profiling_Request__c/fields/Prop_RequestStatus__c.field-meta.xml
|
|
14
|
+
*/
|
|
15
|
+
export type ProfileRequestStatus = 'Queued' | 'Canceled' | 'Completed' | 'Rejected';
|
|
16
|
+
/**
|
|
17
|
+
* Statuses that are eligible for cancellation.
|
|
18
|
+
*
|
|
19
|
+
* Only Queued requests can be cancelled. All other statuses are terminal.
|
|
20
|
+
*/
|
|
21
|
+
export declare const CANCELLABLE_STATUSES: ProfileRequestStatus[];
|
|
22
|
+
/**
|
|
23
|
+
* Statuses that are eligible for deletion.
|
|
24
|
+
*
|
|
25
|
+
* Only Canceled and Rejected requests can be deleted — these never produced
|
|
26
|
+
* a summary. Completed requests are protected because reprofiling resolves
|
|
27
|
+
* the profiling user from the most recently completed request. Completed
|
|
28
|
+
* requests are cascade-deleted when their summary is purged.
|
|
29
|
+
*/
|
|
30
|
+
export declare const DELETABLE_STATUSES: ProfileRequestStatus[];
|
|
31
|
+
/**
|
|
32
|
+
* Represents a Salesforce profiling request record (pnova__Profiling_Request__c).
|
|
33
|
+
*/
|
|
34
|
+
export type IProfileRequest = {
|
|
35
|
+
/** Salesforce record ID */
|
|
36
|
+
id: string;
|
|
37
|
+
/** Request name/identifier */
|
|
38
|
+
name: string;
|
|
39
|
+
/** Current status: Queued, Canceled, Completed, Rejected */
|
|
40
|
+
status: ProfileRequestStatus;
|
|
41
|
+
/** Associated profiling definition ID */
|
|
42
|
+
definitionId: string;
|
|
43
|
+
/** Associated definition name */
|
|
44
|
+
definitionName: string;
|
|
45
|
+
/** Object API name being profiled */
|
|
46
|
+
objectName: string;
|
|
47
|
+
/** When the request was created (ISO 8601) */
|
|
48
|
+
createdDate: string;
|
|
49
|
+
/** When the request was last modified (ISO 8601) */
|
|
50
|
+
lastModifiedDate: string;
|
|
51
|
+
/** User who submitted the request */
|
|
52
|
+
submittedBy: string;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Options for listing profiling requests.
|
|
56
|
+
*/
|
|
57
|
+
export type ProfileRequestListOptions = {
|
|
58
|
+
/** Filter by status */
|
|
59
|
+
status?: ProfileRequestStatus | ProfileRequestStatus[];
|
|
60
|
+
/** Pagination limit (default 25, max 200) */
|
|
61
|
+
limit?: number;
|
|
62
|
+
/** Pagination offset */
|
|
63
|
+
offset?: number;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Options for cancelling profiling requests.
|
|
67
|
+
*/
|
|
68
|
+
export type ProfileRequestCancelOptions = {
|
|
69
|
+
/** Cancel all cancellable requests */
|
|
70
|
+
all?: boolean;
|
|
71
|
+
/** Cancel specific request IDs */
|
|
72
|
+
requestIds?: string[];
|
|
73
|
+
/** Dry run -- return what would be canceled without acting */
|
|
74
|
+
dryRun?: boolean;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Result of a cancel operation.
|
|
78
|
+
*/
|
|
79
|
+
export type ProfileRequestCancelResult = {
|
|
80
|
+
/** Requests that were canceled (or would be in dry-run) */
|
|
81
|
+
cancelled: IProfileRequest[];
|
|
82
|
+
/** Requests that failed to cancel */
|
|
83
|
+
failed: Array<{
|
|
84
|
+
id: string;
|
|
85
|
+
error: string;
|
|
86
|
+
}>;
|
|
87
|
+
/** Whether this was a dry run */
|
|
88
|
+
dryRun: boolean;
|
|
89
|
+
/** Total count of cancellable requests found */
|
|
90
|
+
totalCancellable: number;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Options for deleting profiling requests.
|
|
94
|
+
*/
|
|
95
|
+
export type ProfileRequestDeleteOptions = {
|
|
96
|
+
/** Delete all deletable (Canceled and Rejected) requests */
|
|
97
|
+
all?: boolean;
|
|
98
|
+
/** Delete specific request IDs */
|
|
99
|
+
requestIds?: string[];
|
|
100
|
+
/** Dry run -- return what would be deleted without acting */
|
|
101
|
+
dryRun?: boolean;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Result of a delete operation.
|
|
105
|
+
*/
|
|
106
|
+
export type ProfileRequestDeleteResult = {
|
|
107
|
+
/** Requests that were deleted (or would be in dry-run) */
|
|
108
|
+
deleted: IProfileRequest[];
|
|
109
|
+
/** Requests that failed to delete */
|
|
110
|
+
failed: Array<{
|
|
111
|
+
id: string;
|
|
112
|
+
error: string;
|
|
113
|
+
}>;
|
|
114
|
+
/** Whether this was a dry run */
|
|
115
|
+
dryRun: boolean;
|
|
116
|
+
/** Total count of deletable requests found */
|
|
117
|
+
totalDeletable: number;
|
|
118
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
* Statuses that are eligible for cancellation.
|
|
10
|
+
*
|
|
11
|
+
* Only Queued requests can be cancelled. All other statuses are terminal.
|
|
12
|
+
*/
|
|
13
|
+
export const CANCELLABLE_STATUSES = ['Queued'];
|
|
14
|
+
/**
|
|
15
|
+
* Statuses that are eligible for deletion.
|
|
16
|
+
*
|
|
17
|
+
* Only Canceled and Rejected requests can be deleted — these never produced
|
|
18
|
+
* a summary. Completed requests are protected because reprofiling resolves
|
|
19
|
+
* the profiling user from the most recently completed request. Completed
|
|
20
|
+
* requests are cascade-deleted when their summary is purged.
|
|
21
|
+
*/
|
|
22
|
+
export const DELETABLE_STATUSES = ['Canceled', 'Rejected'];
|
|
23
|
+
//# sourceMappingURL=profile-request-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile-request-types.js","sourceRoot":"","sources":["../../src/models/profile-request-types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAmBH;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAA2B,CAAC,QAAQ,CAAC,CAAC;AAEvE;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA2B,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared types for profiling execution and bulk execution.
|
|
3
|
+
*
|
|
4
|
+
* These types were extracted from ProfilingExecutionService during the
|
|
5
|
+
* CLI-1415 decomposition to allow BulkExecutionService to use them
|
|
6
|
+
* without circular dependencies. ProfilingExecutionService re-exports
|
|
7
|
+
* all types for backward compatibility — no consumer imports change.
|
|
8
|
+
*
|
|
9
|
+
* @module models/profiling-execution-types
|
|
10
|
+
*/
|
|
11
|
+
import type { ProfilingDefinition } from '../services/ProfilingDefinitionService.js';
|
|
12
|
+
import type { ServiceResult } from './service-result.js';
|
|
13
|
+
import { type ProfilingRequestStatus, TERMINAL_STATUSES } from './status-types.js';
|
|
14
|
+
export { type ProfilingRequestStatus, TERMINAL_STATUSES };
|
|
15
|
+
/**
|
|
16
|
+
* Profiling status information.
|
|
17
|
+
*/
|
|
18
|
+
export type ProfilingStatus = {
|
|
19
|
+
/** The profiling request ID */
|
|
20
|
+
requestId: string;
|
|
21
|
+
/** Current status */
|
|
22
|
+
status: ProfilingRequestStatus;
|
|
23
|
+
/** The associated definition ID */
|
|
24
|
+
definitionId: string;
|
|
25
|
+
/** Error message if status is Rejected */
|
|
26
|
+
errorMessage?: string;
|
|
27
|
+
/** When the request was created (ISO 8601) */
|
|
28
|
+
createdDate?: string;
|
|
29
|
+
/** When the request was last modified (ISO 8601) */
|
|
30
|
+
lastModifiedDate?: string;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Profiling result after completion.
|
|
34
|
+
*/
|
|
35
|
+
export type ProfilingResult = {
|
|
36
|
+
/** The profiling request ID */
|
|
37
|
+
requestId: string;
|
|
38
|
+
/** Final status */
|
|
39
|
+
status: ProfilingRequestStatus;
|
|
40
|
+
/** The associated definition ID */
|
|
41
|
+
definitionId: string;
|
|
42
|
+
/** Whether profiling completed successfully */
|
|
43
|
+
success: boolean;
|
|
44
|
+
/** Error message if profiling failed */
|
|
45
|
+
errorMessage?: string;
|
|
46
|
+
/** When the request started (ISO 8601) */
|
|
47
|
+
startedAt?: string;
|
|
48
|
+
/** When the request completed (ISO 8601) */
|
|
49
|
+
completedAt?: string;
|
|
50
|
+
/** Total duration in milliseconds */
|
|
51
|
+
durationMs?: number;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Options for the execute() method.
|
|
55
|
+
*/
|
|
56
|
+
export type ExecuteOptions = {
|
|
57
|
+
/** Skip definition existence validation. Use when the caller has already verified the definition exists. */
|
|
58
|
+
skipValidation?: boolean;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Callback interface for profiling operations used by BulkExecutionService.
|
|
62
|
+
* Decouples bulk orchestration from single-execution mechanics.
|
|
63
|
+
*/
|
|
64
|
+
export type IProfilingExecutor = {
|
|
65
|
+
/** Triggers a single profiling execution and returns the request ID */
|
|
66
|
+
execute(definitionId: string): Promise<ServiceResult<string>>;
|
|
67
|
+
/** Gets the current status for a profiling request */
|
|
68
|
+
getStatus(requestId: string): Promise<ServiceResult<ProfilingStatus>>;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Options for bulk execution of profiling definitions.
|
|
72
|
+
*/
|
|
73
|
+
export type BulkExecutionOptions = {
|
|
74
|
+
/** Number of parallel threads (1-10, default 5) */
|
|
75
|
+
parallel?: number;
|
|
76
|
+
/** Skip definitions with no records to profile (default true) */
|
|
77
|
+
skipEmpty?: boolean;
|
|
78
|
+
/** Polling interval for status checks in milliseconds (default 5000ms) */
|
|
79
|
+
pollInterval?: number;
|
|
80
|
+
/** Wait for profiling to complete (default true). Set to false for enqueue-only mode. */
|
|
81
|
+
waitForCompletion?: boolean;
|
|
82
|
+
};
|
|
83
|
+
import { type DefinitionExecutionStatus } from './status-types.js';
|
|
84
|
+
export { type DefinitionExecutionStatus };
|
|
85
|
+
/**
|
|
86
|
+
* Reason why a definition was skipped.
|
|
87
|
+
*/
|
|
88
|
+
export type SkipReason = 'empty' | 'in_progress' | 'error';
|
|
89
|
+
/**
|
|
90
|
+
* Result of executing a single definition in bulk execution.
|
|
91
|
+
*/
|
|
92
|
+
export type DefinitionExecutionResult = {
|
|
93
|
+
/** The profiling definition */
|
|
94
|
+
definition: ProfilingDefinition;
|
|
95
|
+
/** Execution status */
|
|
96
|
+
status: DefinitionExecutionStatus;
|
|
97
|
+
/** The profiling request ID (if execution started) */
|
|
98
|
+
requestId?: string;
|
|
99
|
+
/** Profiling result (if completed) */
|
|
100
|
+
result?: ProfilingResult;
|
|
101
|
+
/** Error message (if failed) */
|
|
102
|
+
errorMessage?: string;
|
|
103
|
+
/** Error code (if failed) */
|
|
104
|
+
errorCode?: string;
|
|
105
|
+
/** Skip reason (if skipped) */
|
|
106
|
+
skipReason?: SkipReason;
|
|
107
|
+
/** User-friendly resolution guidance (if failed) */
|
|
108
|
+
resolution?: string;
|
|
109
|
+
/** Duration in milliseconds */
|
|
110
|
+
durationMs: number;
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Summary of bulk execution results.
|
|
114
|
+
*/
|
|
115
|
+
export type BulkExecutionSummary = {
|
|
116
|
+
/** Total number of definitions processed */
|
|
117
|
+
total: number;
|
|
118
|
+
/** Number of successfully completed definitions */
|
|
119
|
+
successful: number;
|
|
120
|
+
/** Number of failed definitions */
|
|
121
|
+
failed: number;
|
|
122
|
+
/** Number of skipped definitions */
|
|
123
|
+
skipped: number;
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* Complete result of bulk execution.
|
|
127
|
+
*/
|
|
128
|
+
export type BulkExecutionResult = {
|
|
129
|
+
/** Summary statistics */
|
|
130
|
+
summary: BulkExecutionSummary;
|
|
131
|
+
/** Results for each definition */
|
|
132
|
+
definitions: DefinitionExecutionResult[];
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Progress update during bulk execution.
|
|
136
|
+
*/
|
|
137
|
+
export type BulkProgressUpdate = {
|
|
138
|
+
/** Current definition being processed */
|
|
139
|
+
current: ProfilingDefinition;
|
|
140
|
+
/** Current status of the definition */
|
|
141
|
+
status: DefinitionExecutionStatus;
|
|
142
|
+
/** Index of current definition (0-based) */
|
|
143
|
+
index: number;
|
|
144
|
+
/** Total number of definitions */
|
|
145
|
+
total: number;
|
|
146
|
+
/** Running summary of results so far */
|
|
147
|
+
summary: BulkExecutionSummary;
|
|
148
|
+
/** Optional message describing current activity */
|
|
149
|
+
message?: string;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* Callback function for progress updates during bulk execution.
|
|
153
|
+
*/
|
|
154
|
+
export type ProgressCallback = (update: BulkProgressUpdate) => void;
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
// Single execution types
|
|
10
|
+
// ---------------------------------------------------------------------------
|
|
11
|
+
// Imported from centralized status registry and re-exported for backward compatibility
|
|
12
|
+
import { TERMINAL_STATUSES } from './status-types.js';
|
|
13
|
+
export { TERMINAL_STATUSES };
|
|
14
|
+
//# sourceMappingURL=profiling-execution-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profiling-execution-types.js","sourceRoot":"","sources":["../../src/models/profiling-execution-types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAoBH,8EAA8E;AAC9E,yBAAyB;AACzB,8EAA8E;AAE9E,uFAAuF;AACvF,OAAO,EAA+B,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACnF,OAAO,EAA+B,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Metadata associated with a service result.
|
|
3
|
+
* Contains operational details that may be useful for debugging or logging.
|
|
4
|
+
*/
|
|
5
|
+
export type ServiceResultMetadata = {
|
|
6
|
+
/** Additional context-specific metadata */
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
/** Time taken for the operation in milliseconds */
|
|
9
|
+
duration?: number;
|
|
10
|
+
/** Strategy used (if multiple available) */
|
|
11
|
+
strategyUsed?: string;
|
|
12
|
+
/** Whether a fallback was used */
|
|
13
|
+
fallbackUsed?: boolean;
|
|
14
|
+
/** Original Salesforce error code if mapped from SF error */
|
|
15
|
+
sfErrorCode?: string;
|
|
16
|
+
/** Number of Salesforce API calls made during this operation */
|
|
17
|
+
apiCallCount?: number;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Generic service result wrapper following CLAUDE.md ServiceResult pattern.
|
|
21
|
+
* All service and adapter methods should return this type for consistent handling.
|
|
22
|
+
*
|
|
23
|
+
* @template T The type of the data payload
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```typescript
|
|
27
|
+
* // Success result
|
|
28
|
+
* const success: ServiceResult<User[]> = {
|
|
29
|
+
* success: true,
|
|
30
|
+
* data: users,
|
|
31
|
+
* message: 'Found 10 users',
|
|
32
|
+
* metadata: { duration: 150 }
|
|
33
|
+
* };
|
|
34
|
+
*
|
|
35
|
+
* // Failure result
|
|
36
|
+
* const failure: ServiceResult<User[]> = {
|
|
37
|
+
* success: false,
|
|
38
|
+
* data: [],
|
|
39
|
+
* errorCode: 'E3102',
|
|
40
|
+
* message: 'Invalid SOQL query syntax'
|
|
41
|
+
* };
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export type ServiceResult<T> = {
|
|
45
|
+
/** Whether the operation was successful */
|
|
46
|
+
success: boolean;
|
|
47
|
+
/** The operation result data */
|
|
48
|
+
data: T;
|
|
49
|
+
/** Error code for categorizing failures (see error code ranges in CLAUDE.md) */
|
|
50
|
+
errorCode?: string;
|
|
51
|
+
/** Human-readable message (error or success) */
|
|
52
|
+
message?: string;
|
|
53
|
+
/** Non-fatal warnings encountered during execution */
|
|
54
|
+
warnings?: string[];
|
|
55
|
+
/** Additional metadata about the operation */
|
|
56
|
+
metadata?: ServiceResultMetadata;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Creates a successful service result.
|
|
60
|
+
*
|
|
61
|
+
* @template T The type of the data payload
|
|
62
|
+
* @param data - The result data
|
|
63
|
+
* @param options - Optional message, warnings, and metadata
|
|
64
|
+
* @returns A successful ServiceResult
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```typescript
|
|
68
|
+
* return createSuccessResult(records, {
|
|
69
|
+
* message: `Found ${records.length} records`,
|
|
70
|
+
* metadata: { duration: Date.now() - startTime }
|
|
71
|
+
* });
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
export declare function createSuccessResult<T>(data: T, options?: {
|
|
75
|
+
message?: string;
|
|
76
|
+
warnings?: string[];
|
|
77
|
+
metadata?: ServiceResultMetadata;
|
|
78
|
+
}): ServiceResult<T>;
|
|
79
|
+
/**
|
|
80
|
+
* Creates a failed service result.
|
|
81
|
+
*
|
|
82
|
+
* @template T The type of the data payload
|
|
83
|
+
* @param data - The default/empty data for failed result
|
|
84
|
+
* @param errorCode - The error code categorizing the failure
|
|
85
|
+
* @param message - Human-readable error message (optional — omit to test nullish coalescing fallback)
|
|
86
|
+
* @param options - Optional metadata
|
|
87
|
+
* @returns A failed ServiceResult
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```typescript
|
|
91
|
+
* return createFailureResult([], 'E3102', 'Invalid SOQL query syntax', {
|
|
92
|
+
* metadata: { sfErrorCode: 'INVALID_QUERY' }
|
|
93
|
+
* });
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
export declare function createFailureResult<T>(data: T, errorCode: string, message?: string, options?: {
|
|
97
|
+
metadata?: ServiceResultMetadata;
|
|
98
|
+
}): ServiceResult<T>;
|
|
99
|
+
/**
|
|
100
|
+
* Creates a failed service result without data.
|
|
101
|
+
*
|
|
102
|
+
* Use when a failure occurs before any data is available (e.g., namespace guard
|
|
103
|
+
* blocks a request, or validation fails before query execution). Avoids the
|
|
104
|
+
* `undefined as unknown as T` cast pattern.
|
|
105
|
+
*
|
|
106
|
+
* @template T The type of the data payload (inferred from calling context)
|
|
107
|
+
* @param errorCode - The error code categorizing the failure
|
|
108
|
+
* @param message - Human-readable error message
|
|
109
|
+
* @param options - Optional metadata
|
|
110
|
+
* @returns A failed ServiceResult with data set to undefined
|
|
111
|
+
*/
|
|
112
|
+
export declare function createEmptyFailureResult<T>(errorCode: string, message?: string, options?: {
|
|
113
|
+
metadata?: ServiceResultMetadata;
|
|
114
|
+
}): ServiceResult<T>;
|