@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,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,53 @@
|
|
|
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
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Type alias for SFDMU error code values.
|
|
52
|
+
*/
|
|
53
|
+
export type SFDMUErrorCode = (typeof SFDMUErrorCodes)[keyof typeof SFDMUErrorCodes];
|
|
@@ -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"}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared types for the `sf cuneiform user details` 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/user-details-types
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Org context information for JSON output.
|
|
11
|
+
*/
|
|
12
|
+
export type OrgContextResult = {
|
|
13
|
+
/** Organization name */
|
|
14
|
+
orgName: string;
|
|
15
|
+
/** 18-character Organization ID */
|
|
16
|
+
orgId: string;
|
|
17
|
+
/** Instance URL (e.g., https://acme.my.salesforce.com) */
|
|
18
|
+
instanceUrl: string;
|
|
19
|
+
/** Whether this is a sandbox org */
|
|
20
|
+
isSandbox: boolean;
|
|
21
|
+
/** Organization type (e.g., Developer Edition, Enterprise Edition) */
|
|
22
|
+
orgType: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* User identity information for JSON output.
|
|
26
|
+
*/
|
|
27
|
+
export type UserIdentityResult = {
|
|
28
|
+
/** Salesforce User ID */
|
|
29
|
+
id: string;
|
|
30
|
+
/** User's login username */
|
|
31
|
+
username: string;
|
|
32
|
+
/** User's email address */
|
|
33
|
+
email: string;
|
|
34
|
+
/** Name of the user's assigned Profile */
|
|
35
|
+
profileName: string;
|
|
36
|
+
/** Name of the user's assigned Role (null if not assigned) */
|
|
37
|
+
roleName: string | null;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Prerequisites check result.
|
|
41
|
+
*/
|
|
42
|
+
export type PrerequisitesResult = {
|
|
43
|
+
/** Whether Cuneiform for Salesforce is installed in the org */
|
|
44
|
+
cuneiformInstalled: boolean;
|
|
45
|
+
/** Whether the Admin permission set is assigned */
|
|
46
|
+
adminAccessAssigned: boolean;
|
|
47
|
+
/** Whether all prerequisites passed */
|
|
48
|
+
allPassed: boolean;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Permission set assignment status for JSON output.
|
|
52
|
+
*/
|
|
53
|
+
export type PermissionSetAssignmentResult = {
|
|
54
|
+
/** Full API name with namespace (e.g., pnova__Cuneiform_for_CRM_PRO_Administrative_User) */
|
|
55
|
+
apiName: string;
|
|
56
|
+
/** Human-readable label (e.g., Cuneiform for CRM PRO Administrative User) */
|
|
57
|
+
label: string;
|
|
58
|
+
/** Whether the permission set is assigned */
|
|
59
|
+
isAssigned: boolean;
|
|
60
|
+
/** Whether this permission set is required for profiling */
|
|
61
|
+
isRequired: boolean;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Configuration profile status for JSON output.
|
|
65
|
+
*/
|
|
66
|
+
export type ConfigProfileResult = {
|
|
67
|
+
/** Whether a configuration profile is active */
|
|
68
|
+
isConfigured: boolean;
|
|
69
|
+
/** Label of the active profile (null if not configured) */
|
|
70
|
+
profileLabel: string | null;
|
|
71
|
+
/** Whether API-only profiling is enabled (null if not configured) */
|
|
72
|
+
apiOnlyProfilingEnabled: boolean | null;
|
|
73
|
+
/** Whether CLI self-provisioning is enabled (null if not configured) */
|
|
74
|
+
selfRegistrationEnabled: boolean | null;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Readiness assessment combining permission sets and config profile.
|
|
78
|
+
*/
|
|
79
|
+
export type ReadinessResult = {
|
|
80
|
+
/** Whether the user is ready to use Cuneiform */
|
|
81
|
+
isReady: boolean;
|
|
82
|
+
/** Permission set assignment statuses */
|
|
83
|
+
permissionSets: PermissionSetAssignmentResult[];
|
|
84
|
+
/** Configuration profile status */
|
|
85
|
+
configProfile: ConfigProfileResult;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Structured resolution guidance item with persona routing.
|
|
89
|
+
*/
|
|
90
|
+
export type ResolutionGuidanceItem = {
|
|
91
|
+
/** What the issue is */
|
|
92
|
+
issue: string;
|
|
93
|
+
/** Itemized detail lines (rendered as indented bullets) */
|
|
94
|
+
detail?: string[];
|
|
95
|
+
/** What action to take */
|
|
96
|
+
action: string;
|
|
97
|
+
/** Who should take the action */
|
|
98
|
+
persona: 'admin' | 'self';
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Individual configuration action result.
|
|
102
|
+
*/
|
|
103
|
+
export type ConfigurationActionResult = {
|
|
104
|
+
/** Type of action */
|
|
105
|
+
type: 'assignPermissionSet' | 'enableApiOnlyProfiling' | 'unassignPermissionSet' | 'disableApiOnlyProfiling';
|
|
106
|
+
/** Target identifier (permission set name or profile name) */
|
|
107
|
+
target: string;
|
|
108
|
+
/** Human-readable label for the target */
|
|
109
|
+
targetLabel: string;
|
|
110
|
+
/** Action status */
|
|
111
|
+
status: 'applied' | 'skipped' | 'failed' | 'planned';
|
|
112
|
+
/** Status message */
|
|
113
|
+
message?: string;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* Configuration result (only present when --configure is used).
|
|
117
|
+
*/
|
|
118
|
+
export type ConfigurationResult = {
|
|
119
|
+
/** Whether this was a dry-run (no changes applied) */
|
|
120
|
+
dryRun: boolean;
|
|
121
|
+
/** Actions taken or planned */
|
|
122
|
+
actions: ConfigurationActionResult[];
|
|
123
|
+
/** Summary statistics */
|
|
124
|
+
summary: {
|
|
125
|
+
/** Number of changes required */
|
|
126
|
+
changesRequired: number;
|
|
127
|
+
/** Number of changes successfully applied */
|
|
128
|
+
changesApplied: number;
|
|
129
|
+
/** Number of changes that failed */
|
|
130
|
+
changesFailed: number;
|
|
131
|
+
};
|
|
132
|
+
/** Deployment job ID for tracking (if API-only profiling was enabled) */
|
|
133
|
+
deploymentJobId?: string;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Contextual links for the user.
|
|
137
|
+
*/
|
|
138
|
+
export type LinksResult = {
|
|
139
|
+
/** URL to verification documentation */
|
|
140
|
+
documentation?: string;
|
|
141
|
+
/** URL to installation guide */
|
|
142
|
+
installationGuide?: string;
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* Unified command result type for JSON output.
|
|
146
|
+
* Used by both diagnostic (default) and configure (--configure) modes.
|
|
147
|
+
*/
|
|
148
|
+
export type UserDetailsResult = {
|
|
149
|
+
/** Org context information */
|
|
150
|
+
orgContext: OrgContextResult;
|
|
151
|
+
/** User identity information */
|
|
152
|
+
user: UserIdentityResult;
|
|
153
|
+
/** Prerequisites check result */
|
|
154
|
+
prerequisites: PrerequisitesResult;
|
|
155
|
+
/** Readiness assessment */
|
|
156
|
+
readiness: ReadinessResult;
|
|
157
|
+
/** Structured resolution guidance (empty if ready) */
|
|
158
|
+
resolutionGuidance: ResolutionGuidanceItem[];
|
|
159
|
+
/** Configuration result (only present when --configure is used) */
|
|
160
|
+
configuration?: ConfigurationResult;
|
|
161
|
+
/** Contextual links */
|
|
162
|
+
links: LinksResult;
|
|
163
|
+
};
|
|
@@ -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=user-details-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-details-types.js","sourceRoot":"","sources":["../../src/models/user-details-types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a single comparative year entry within a year range.
|
|
3
|
+
*
|
|
4
|
+
* Each entry defines what "Set A" and "Set B" are for a comparative definition:
|
|
5
|
+
* - Bounded: year vs year-1 (e.g., 2026 vs 2025)
|
|
6
|
+
* - Unbounded: year vs all prior records (e.g., 2023 vs Prior)
|
|
7
|
+
*/
|
|
8
|
+
export type ComparativeYearEntry = {
|
|
9
|
+
/** The target year (Set A: records created in this year) */
|
|
10
|
+
readonly year: number;
|
|
11
|
+
/** When true, Set B is "all records before year" instead of "year - 1" */
|
|
12
|
+
readonly unbounded: boolean;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* A resolved year range for comparative profiling definitions.
|
|
16
|
+
*
|
|
17
|
+
* Contains the ordered list of comparative year entries derived from user input
|
|
18
|
+
* (flags like --year, --depth, --from, --to, --use-prior).
|
|
19
|
+
*
|
|
20
|
+
* Default behavior:
|
|
21
|
+
* - comparative method: depth=1 (current year only)
|
|
22
|
+
* - full method: depth=3 (current year + 2 prior years)
|
|
23
|
+
* - --use-prior replaces the last entry with an unbounded comparison
|
|
24
|
+
*/
|
|
25
|
+
export type YearRange = {
|
|
26
|
+
/** Ordered list of comparative years (most recent first) */
|
|
27
|
+
readonly entries: readonly ComparativeYearEntry[];
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Raw flag inputs for year range resolution.
|
|
31
|
+
* Mirrors the CLI flags before validation and resolution.
|
|
32
|
+
*/
|
|
33
|
+
export type YearRangeInput = {
|
|
34
|
+
/** Single year or comma-delimited years (e.g., 2026 or "2026,2025,2024") */
|
|
35
|
+
year?: number | number[];
|
|
36
|
+
/** Number of years to include (counting back from year) */
|
|
37
|
+
depth?: number;
|
|
38
|
+
/** Start year of explicit range (inclusive) */
|
|
39
|
+
from?: number;
|
|
40
|
+
/** End year of explicit range (inclusive) */
|
|
41
|
+
to?: number;
|
|
42
|
+
/** Replace last comparison with unbounded "vs Prior" */
|
|
43
|
+
usePrior?: boolean;
|
|
44
|
+
/** Profiling method — determines default depth */
|
|
45
|
+
method?: 'metadata' | 'historical' | 'comparative' | 'recordtype' | 'outcome' | 'full';
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Resolves CLI flag inputs into a validated YearRange.
|
|
49
|
+
*
|
|
50
|
+
* Resolution priority:
|
|
51
|
+
* 1. --from/--to: explicit range (inclusive, most recent first)
|
|
52
|
+
* 2. --year (array): comma-delimited years
|
|
53
|
+
* 3. --year + --depth: single year with lookback depth
|
|
54
|
+
* 4. --year alone: single year with method-default depth
|
|
55
|
+
* 5. No flags: current year with method-default depth
|
|
56
|
+
*
|
|
57
|
+
* @param input - Raw flag inputs
|
|
58
|
+
* @returns Resolved YearRange
|
|
59
|
+
* @throws Error if inputs are invalid or conflicting
|
|
60
|
+
*/
|
|
61
|
+
export declare function resolveYearRange(input?: YearRangeInput): YearRange;
|
|
62
|
+
/**
|
|
63
|
+
* Returns the default depth for a given profiling method.
|
|
64
|
+
*
|
|
65
|
+
* - comparative: 1 (current year only)
|
|
66
|
+
* - outcome: 1 (no year dimension — uses filterJson)
|
|
67
|
+
* - full: 3 (current year + 2 prior)
|
|
68
|
+
* - recordtype: 3 (same as full)
|
|
69
|
+
*/
|
|
70
|
+
export declare function getDefaultDepth(method: string): number;
|
|
71
|
+
/**
|
|
72
|
+
* Formats a ComparativeYearEntry as a human-readable string.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* formatYearEntry({ year: 2026, unbounded: false }) // "2026 vs 2025"
|
|
76
|
+
* formatYearEntry({ year: 2023, unbounded: true }) // "2023 vs Prior"
|
|
77
|
+
*/
|
|
78
|
+
export declare function formatYearEntry(entry: ComparativeYearEntry): string;
|