@peernova/cuneiform-sf 1.0.2 → 1.0.4-beta.10
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 +168 -134
- 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/lifecycle.d.ts +112 -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 +393 -0
- package/lib/adapters/rest/rest-api-adapter.js +764 -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 +418 -0
- package/lib/adapters/soql/cuneiform-query-builder.js +606 -0
- package/lib/adapters/soql/cuneiform-query-builder.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 +175 -0
- package/lib/base/cuneiform-command.js +326 -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 +120 -0
- package/lib/commands/cuneiform/definition/create.js +737 -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 +277 -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 +351 -0
- package/lib/commands/cuneiform/definition/list.js.map +1 -0
- package/lib/commands/cuneiform/definition/purge.d.ts +109 -0
- package/lib/commands/cuneiform/definition/purge.js +578 -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 +209 -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 +123 -0
- package/lib/commands/cuneiform/object/list.js +264 -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 +93 -0
- package/lib/commands/cuneiform/profile.js +353 -0
- package/lib/commands/cuneiform/profile.js.map +1 -0
- package/lib/commands/cuneiform/summary/purge.d.ts +80 -0
- package/lib/commands/cuneiform/summary/purge.js +467 -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 +77 -0
- package/lib/commands/cuneiform/user/details.js +414 -0
- package/lib/commands/cuneiform/user/details.js.map +1 -0
- package/lib/constants/namespace-constants.d.ts +102 -0
- package/lib/constants/namespace-constants.js +225 -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/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 +310 -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 +220 -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 +327 -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/cascade-skip-accumulator.d.ts +25 -0
- package/lib/models/cascade-skip-accumulator.js +9 -0
- package/lib/models/cascade-skip-accumulator.js.map +1 -0
- package/lib/models/date-literal.d.ts +280 -0
- package/lib/models/date-literal.js +1164 -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/portability-recipe.d.ts +35 -0
- package/lib/models/portability-recipe.js +113 -0
- package/lib/models/portability-recipe.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 +49 -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 +188 -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 +427 -0
- package/lib/operations/DefinitionCreateOperation.js +1270 -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 +203 -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 +192 -0
- package/lib/operations/ProfileOperation.js +371 -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 +98 -0
- package/lib/services/ConfigureMode.js +413 -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 +357 -0
- package/lib/services/DefinitionFieldGenerationService.js +899 -0
- package/lib/services/DefinitionFieldGenerationService.js.map +1 -0
- package/lib/services/DefinitionQueryBuilder.d.ts +92 -0
- package/lib/services/DefinitionQueryBuilder.js +328 -0
- package/lib/services/DefinitionQueryBuilder.js.map +1 -0
- package/lib/services/ObjectDescribeService.d.ts +436 -0
- package/lib/services/ObjectDescribeService.js +881 -0
- package/lib/services/ObjectDescribeService.js.map +1 -0
- package/lib/services/ObjectFilteringService.d.ts +484 -0
- package/lib/services/ObjectFilteringService.js +1080 -0
- package/lib/services/ObjectFilteringService.js.map +1 -0
- package/lib/services/ObjectListCommandService.d.ts +467 -0
- package/lib/services/ObjectListCommandService.js +904 -0
- package/lib/services/ObjectListCommandService.js.map +1 -0
- package/lib/services/ObjectListService.d.ts +201 -0
- package/lib/services/ObjectListService.js +350 -0
- package/lib/services/ObjectListService.js.map +1 -0
- package/lib/services/OrgInfoService.d.ts +493 -0
- package/lib/services/OrgInfoService.js +1142 -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 +575 -0
- package/lib/services/ProfilingDefinitionService.js +1029 -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 +688 -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 +146 -0
- package/lib/services/SFDMUService.js +323 -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 +158 -0
- package/lib/services/UserConfigurationService.js +574 -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 +347 -0
- package/lib/services/UserReadinessService.js +891 -0
- package/lib/services/UserReadinessService.js.map +1 -0
- package/lib/services/constants.d.ts +54 -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/namespace-filter.d.ts +36 -0
- package/lib/services/namespace-filter.js +109 -0
- package/lib/services/namespace-filter.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 +230 -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 +117 -0
- package/lib/utils/formatting/object-describe-display.js +447 -0
- package/lib/utils/formatting/object-describe-display.js.map +1 -0
- package/lib/utils/formatting/object-list-display.d.ts +225 -0
- package/lib/utils/formatting/object-list-display.js +718 -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/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 +525 -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 +330 -0
- package/messages/definition.update.md +118 -0
- package/messages/mcp.serve.md +66 -0
- package/messages/object.describe.md +205 -0
- package/messages/object.list.md +463 -0
- package/messages/org.details.md +386 -0
- package/messages/org.reset.md +71 -0
- package/messages/profile.md +243 -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 +3267 -2148
- package/oclif.manifest.json +2829 -31
- package/package.json +104 -18
- 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,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>;
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
* Creates a successful service result.
|
|
10
|
+
*
|
|
11
|
+
* @template T The type of the data payload
|
|
12
|
+
* @param data - The result data
|
|
13
|
+
* @param options - Optional message, warnings, and metadata
|
|
14
|
+
* @returns A successful ServiceResult
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```typescript
|
|
18
|
+
* return createSuccessResult(records, {
|
|
19
|
+
* message: `Found ${records.length} records`,
|
|
20
|
+
* metadata: { duration: Date.now() - startTime }
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export function createSuccessResult(data, options) {
|
|
25
|
+
return {
|
|
26
|
+
success: true,
|
|
27
|
+
data,
|
|
28
|
+
message: options?.message,
|
|
29
|
+
warnings: options?.warnings,
|
|
30
|
+
metadata: options?.metadata,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Creates a failed service result.
|
|
35
|
+
*
|
|
36
|
+
* @template T The type of the data payload
|
|
37
|
+
* @param data - The default/empty data for failed result
|
|
38
|
+
* @param errorCode - The error code categorizing the failure
|
|
39
|
+
* @param message - Human-readable error message (optional — omit to test nullish coalescing fallback)
|
|
40
|
+
* @param options - Optional metadata
|
|
41
|
+
* @returns A failed ServiceResult
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```typescript
|
|
45
|
+
* return createFailureResult([], 'E3102', 'Invalid SOQL query syntax', {
|
|
46
|
+
* metadata: { sfErrorCode: 'INVALID_QUERY' }
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export function createFailureResult(data, errorCode, message, options) {
|
|
51
|
+
return {
|
|
52
|
+
success: false,
|
|
53
|
+
data,
|
|
54
|
+
errorCode,
|
|
55
|
+
message,
|
|
56
|
+
metadata: options?.metadata,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Creates a failed service result without data.
|
|
61
|
+
*
|
|
62
|
+
* Use when a failure occurs before any data is available (e.g., namespace guard
|
|
63
|
+
* blocks a request, or validation fails before query execution). Avoids the
|
|
64
|
+
* `undefined as unknown as T` cast pattern.
|
|
65
|
+
*
|
|
66
|
+
* @template T The type of the data payload (inferred from calling context)
|
|
67
|
+
* @param errorCode - The error code categorizing the failure
|
|
68
|
+
* @param message - Human-readable error message
|
|
69
|
+
* @param options - Optional metadata
|
|
70
|
+
* @returns A failed ServiceResult with data set to undefined
|
|
71
|
+
*/
|
|
72
|
+
export function createEmptyFailureResult(errorCode, message, options) {
|
|
73
|
+
return {
|
|
74
|
+
success: false,
|
|
75
|
+
data: undefined,
|
|
76
|
+
errorCode,
|
|
77
|
+
message,
|
|
78
|
+
metadata: options?.metadata,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=service-result.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service-result.js","sourceRoot":"","sources":["../../src/models/service-result.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAuEH;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,mBAAmB,CACjC,IAAO,EACP,OAIC;IAED,OAAO;QACL,OAAO,EAAE,IAAI;QACb,IAAI;QACJ,OAAO,EAAE,OAAO,EAAE,OAAO;QACzB,QAAQ,EAAE,OAAO,EAAE,QAAQ;QAC3B,QAAQ,EAAE,OAAO,EAAE,QAAQ;KAC5B,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,mBAAmB,CACjC,IAAO,EACP,SAAiB,EACjB,OAAgB,EAChB,OAEC;IAED,OAAO;QACL,OAAO,EAAE,KAAK;QACd,IAAI;QACJ,SAAS;QACT,OAAO;QACP,QAAQ,EAAE,OAAO,EAAE,QAAQ;KAC5B,CAAC;AACJ,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,wBAAwB,CACtC,SAAiB,EACjB,OAAgB,EAChB,OAEC;IAED,OAAO;QACL,OAAO,EAAE,KAAK;QACd,IAAI,EAAE,SAAc;QACpB,SAAS;QACT,OAAO;QACP,QAAQ,EAAE,OAAO,EAAE,QAAQ;KAC5B,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export type { ServiceResult, ServiceResultMetadata } from './service-result.js';
|
|
2
|
+
export { createSuccessResult, createFailureResult } from './service-result.js';
|
|
3
|
+
/**
|
|
4
|
+
* Options for SFDMU execution operations.
|
|
5
|
+
*/
|
|
6
|
+
export type ISFDMUOptions = {
|
|
7
|
+
/** Source org username or alias for export operations */
|
|
8
|
+
sourceOrg?: string;
|
|
9
|
+
/** Target org username or alias for import operations */
|
|
10
|
+
targetOrg?: string;
|
|
11
|
+
/** Path to the export.json configuration file */
|
|
12
|
+
configPath: string;
|
|
13
|
+
/** Whether to use Bulk API for operations (default: true) */
|
|
14
|
+
useBulkAPI?: boolean;
|
|
15
|
+
/** Execution timeout in milliseconds (default: 300000 = 5 minutes) */
|
|
16
|
+
timeout?: number;
|
|
17
|
+
/** Maximum buffer size in bytes for stdout/stderr (default: 10MB) */
|
|
18
|
+
maxBuffer?: number;
|
|
19
|
+
/** Enable simulation mode - validates and previews changes without modifying data */
|
|
20
|
+
simulation?: boolean;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Raw result from SFDMU CLI execution.
|
|
24
|
+
*/
|
|
25
|
+
export type ISFDMUResult = {
|
|
26
|
+
/** Exit code from the SFDMU process (0 = success) */
|
|
27
|
+
exitCode: number;
|
|
28
|
+
/** Standard output from SFDMU */
|
|
29
|
+
stdout: string;
|
|
30
|
+
/** Standard error from SFDMU */
|
|
31
|
+
stderr: string;
|
|
32
|
+
/** Number of records processed (parsed from stdout) */
|
|
33
|
+
recordsProcessed?: number;
|
|
34
|
+
/** Error messages extracted from the output */
|
|
35
|
+
errors?: string[];
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* SFDMU-specific error codes (5000 range for system/internal errors).
|
|
39
|
+
*/
|
|
40
|
+
export declare const SFDMUErrorCodes: {
|
|
41
|
+
/** SFDMU plugin is not installed */
|
|
42
|
+
readonly NOT_INSTALLED: "SFDMU_NOT_INSTALLED";
|
|
43
|
+
/** SFDMU execution timed out */
|
|
44
|
+
readonly TIMEOUT: "SFDMU_TIMEOUT";
|
|
45
|
+
/** SFDMU execution failed with non-zero exit code */
|
|
46
|
+
readonly EXECUTION_FAILED: "SFDMU_EXECUTION_FAILED";
|
|
47
|
+
/** Invalid configuration file path */
|
|
48
|
+
readonly CONFIG_INVALID: "SFDMU_CONFIG_INVALID";
|
|
49
|
+
};
|
|
@@ -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
|
+
export { createSuccessResult, createFailureResult } from './service-result.js';
|
|
9
|
+
// ServiceResult<T> is now imported from ./service-result.ts (re-exported above)
|
|
10
|
+
/**
|
|
11
|
+
* SFDMU-specific error codes (5000 range for system/internal errors).
|
|
12
|
+
*/
|
|
13
|
+
export const SFDMUErrorCodes = {
|
|
14
|
+
/** SFDMU plugin is not installed */
|
|
15
|
+
NOT_INSTALLED: 'SFDMU_NOT_INSTALLED',
|
|
16
|
+
/** SFDMU execution timed out */
|
|
17
|
+
TIMEOUT: 'SFDMU_TIMEOUT',
|
|
18
|
+
/** SFDMU execution failed with non-zero exit code */
|
|
19
|
+
EXECUTION_FAILED: 'SFDMU_EXECUTION_FAILED',
|
|
20
|
+
/** Invalid configuration file path */
|
|
21
|
+
CONFIG_INVALID: 'SFDMU_CONFIG_INVALID',
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=sfdmu-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sfdmu-types.js","sourceRoot":"","sources":["../../src/models/sfdmu-types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAgD/E,gFAAgF;AAEhF;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,oCAAoC;IACpC,aAAa,EAAE,qBAAqB;IACpC,gCAAgC;IAChC,OAAO,EAAE,eAAe;IACxB,qDAAqD;IACrD,gBAAgB,EAAE,wBAAwB;IAC1C,sCAAsC;IACtC,cAAc,EAAE,sBAAsB;CAC9B,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Centralized status type registry for the Cuneiform CLI plugin.
|
|
3
|
+
*
|
|
4
|
+
* Naming Conventions:
|
|
5
|
+
* PascalCase for Salesforce API-sourced statuses (picklist values, deploy results).
|
|
6
|
+
* These must match the exact casing returned by the Salesforce API.
|
|
7
|
+
*
|
|
8
|
+
* camelCase for internal operational statuses (CLI execution states, action results).
|
|
9
|
+
* These are defined by the CLI and never sent to Salesforce.
|
|
10
|
+
*
|
|
11
|
+
* @module status-types
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Profiling request status values from `pnova__Prop_RequestStatus__c` picklist.
|
|
15
|
+
*
|
|
16
|
+
* Note: "Canceled" uses a single 'l' (Salesforce convention).
|
|
17
|
+
*/
|
|
18
|
+
export type ProfilingRequestStatus = 'Queued' | 'Canceled' | 'Completed' | 'Rejected';
|
|
19
|
+
/**
|
|
20
|
+
* Terminal status values that indicate profiling is complete.
|
|
21
|
+
*/
|
|
22
|
+
export declare const TERMINAL_STATUSES: Set<ProfilingRequestStatus>;
|
|
23
|
+
/**
|
|
24
|
+
* Metadata deployment status values from the Salesforce Metadata API.
|
|
25
|
+
*/
|
|
26
|
+
export type DeploymentStatus = 'Pending' | 'InProgress' | 'Succeeded' | 'Failed' | 'Canceled' | 'Unknown';
|
|
27
|
+
/**
|
|
28
|
+
* Execution status for a single definition in bulk execution.
|
|
29
|
+
*/
|
|
30
|
+
export type DefinitionExecutionStatus = 'pending' | 'executing' | 'completed' | 'failed' | 'skipped';
|
|
31
|
+
/**
|
|
32
|
+
* Action result status for configuration operations (permission set assignment, CMT deployment).
|
|
33
|
+
*/
|
|
34
|
+
export type ConfigurationActionStatus = 'applied' | 'skipped' | 'failed';
|
|
35
|
+
/**
|
|
36
|
+
* Deletion result status for summary purge operations.
|
|
37
|
+
*/
|
|
38
|
+
export type SummaryDeletionStatus = 'deleted' | 'skipped' | 'failed';
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
* Terminal status values that indicate profiling is complete.
|
|
10
|
+
*/
|
|
11
|
+
export const TERMINAL_STATUSES = new Set(['Completed', 'Canceled', 'Rejected']);
|
|
12
|
+
//# sourceMappingURL=status-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status-types.js","sourceRoot":"","sources":["../../src/models/status-types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAwBH;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAyB,CAAC,WAAW,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Per-item result from a bulk summary operation (stop or reprofile).
|
|
3
|
+
*/
|
|
4
|
+
export type SummaryItemResult = {
|
|
5
|
+
/** The profiling summary record ID */
|
|
6
|
+
id: string;
|
|
7
|
+
/** Whether this item was successfully processed */
|
|
8
|
+
success: boolean;
|
|
9
|
+
/** Error code when not successful */
|
|
10
|
+
errorCode?: string;
|
|
11
|
+
/** Human-readable message when not successful */
|
|
12
|
+
message?: string;
|
|
13
|
+
/** Request ID assigned by the ISV backend (reprofile only) */
|
|
14
|
+
requestId?: string;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Result of a bulk summary operation (stop or reprofile).
|
|
18
|
+
*/
|
|
19
|
+
export type BulkSummaryResult = {
|
|
20
|
+
/** Per-item results preserving input order */
|
|
21
|
+
results: SummaryItemResult[];
|
|
22
|
+
/** Aggregate summary */
|
|
23
|
+
summary: {
|
|
24
|
+
/** Total unique IDs processed */
|
|
25
|
+
total: number;
|
|
26
|
+
/** Number of successfully processed items */
|
|
27
|
+
succeeded: number;
|
|
28
|
+
/** Number of failed items */
|
|
29
|
+
failed: number;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Response shape from the Cuneiform profiling REST API for bulk summary operations.
|
|
34
|
+
* Used by both stop and reprofile endpoints.
|
|
35
|
+
*/
|
|
36
|
+
export type BulkSummaryApiResponse = {
|
|
37
|
+
success: boolean;
|
|
38
|
+
results: Array<{
|
|
39
|
+
id: string;
|
|
40
|
+
success: boolean;
|
|
41
|
+
errorCode?: string;
|
|
42
|
+
message?: string;
|
|
43
|
+
requestId?: string;
|
|
44
|
+
}> | null;
|
|
45
|
+
errors: string[] | null;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* In-progress profiling statuses eligible for stopping.
|
|
49
|
+
*
|
|
50
|
+
* Agg_OverallStatus__c is populated from Custom Labels with exactly 3 values:
|
|
51
|
+
* IN PROGRESS, COMPLETED, FAILED. PREPARING/STAGED/NOT STARTED are PFx_Status__c
|
|
52
|
+
* values, not overall status values.
|
|
53
|
+
*/
|
|
54
|
+
export declare const IN_PROGRESS_SUMMARY_STATUSES: readonly ["IN PROGRESS"];
|
|
55
|
+
/**
|
|
56
|
+
* Terminal failure statuses eligible for re-profiling.
|
|
57
|
+
*
|
|
58
|
+
* When a summary is stopped, Agg_OverallStatus__c becomes FAILED (not CANCELED).
|
|
59
|
+
* CANCELED is a PFx_Status__c value, not an overall status value.
|
|
60
|
+
*/
|
|
61
|
+
export declare const REPROFILABLE_SUMMARY_STATUSES: readonly ["FAILED"];
|
|
@@ -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
|
+
* In-progress profiling statuses eligible for stopping.
|
|
10
|
+
*
|
|
11
|
+
* Agg_OverallStatus__c is populated from Custom Labels with exactly 3 values:
|
|
12
|
+
* IN PROGRESS, COMPLETED, FAILED. PREPARING/STAGED/NOT STARTED are PFx_Status__c
|
|
13
|
+
* values, not overall status values.
|
|
14
|
+
*/
|
|
15
|
+
export const IN_PROGRESS_SUMMARY_STATUSES = ['IN PROGRESS'];
|
|
16
|
+
/**
|
|
17
|
+
* Terminal failure statuses eligible for re-profiling.
|
|
18
|
+
*
|
|
19
|
+
* When a summary is stopped, Agg_OverallStatus__c becomes FAILED (not CANCELED).
|
|
20
|
+
* CANCELED is a PFx_Status__c value, not an overall status value.
|
|
21
|
+
*/
|
|
22
|
+
export const REPROFILABLE_SUMMARY_STATUSES = ['FAILED'];
|
|
23
|
+
//# sourceMappingURL=summary-bulk-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"summary-bulk-types.js","sourceRoot":"","sources":["../../src/models/summary-bulk-types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAmDH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,aAAa,CAAU,CAAC;AAErE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,QAAQ,CAAU,CAAC"}
|