@ryanstark24/sfgraph-core 1.4.0 → 1.6.0
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/dist/analyze/apex-platform.d.ts +23 -0
- package/dist/analyze/apex-platform.d.ts.map +1 -0
- package/dist/analyze/apex-platform.js +112 -0
- package/dist/analyze/apex-platform.js.map +1 -0
- package/dist/analyze/audit-graph.d.ts +34 -10
- package/dist/analyze/audit-graph.d.ts.map +1 -1
- package/dist/analyze/audit-graph.js +360 -39
- package/dist/analyze/audit-graph.js.map +1 -1
- package/dist/analyze/component-scope.d.ts +82 -0
- package/dist/analyze/component-scope.d.ts.map +1 -0
- package/dist/analyze/component-scope.js +207 -0
- package/dist/analyze/component-scope.js.map +1 -0
- package/dist/analyze/containment.d.ts +91 -0
- package/dist/analyze/containment.d.ts.map +1 -0
- package/dist/analyze/containment.js +175 -0
- package/dist/analyze/containment.js.map +1 -0
- package/dist/analyze/cross-org.d.ts +35 -0
- package/dist/analyze/cross-org.d.ts.map +1 -1
- package/dist/analyze/cross-org.js +102 -3
- package/dist/analyze/cross-org.js.map +1 -1
- package/dist/analyze/dead-code.d.ts +99 -3
- package/dist/analyze/dead-code.d.ts.map +1 -1
- package/dist/analyze/dead-code.js +282 -10
- package/dist/analyze/dead-code.js.map +1 -1
- package/dist/analyze/dependencies.d.ts +20 -1
- package/dist/analyze/dependencies.d.ts.map +1 -1
- package/dist/analyze/dependencies.js +96 -12
- package/dist/analyze/dependencies.js.map +1 -1
- package/dist/analyze/dependents.d.ts +111 -1
- package/dist/analyze/dependents.d.ts.map +1 -1
- package/dist/analyze/dependents.js +282 -20
- package/dist/analyze/dependents.js.map +1 -1
- package/dist/analyze/deployment-manifest/generate.d.ts +24 -0
- package/dist/analyze/deployment-manifest/generate.d.ts.map +1 -1
- package/dist/analyze/deployment-manifest/generate.js +40 -12
- package/dist/analyze/deployment-manifest/generate.js.map +1 -1
- package/dist/analyze/deployment-manifest/member-name-formatters.d.ts.map +1 -1
- package/dist/analyze/deployment-manifest/member-name-formatters.js +1 -0
- package/dist/analyze/deployment-manifest/member-name-formatters.js.map +1 -1
- package/dist/analyze/deployment-manifest/member-types.d.ts.map +1 -1
- package/dist/analyze/deployment-manifest/member-types.js +2 -0
- package/dist/analyze/deployment-manifest/member-types.js.map +1 -1
- package/dist/analyze/diff-seeds.d.ts +33 -0
- package/dist/analyze/diff-seeds.d.ts.map +1 -0
- package/dist/analyze/diff-seeds.js +299 -0
- package/dist/analyze/diff-seeds.js.map +1 -0
- package/dist/analyze/edge-filters.d.ts +25 -0
- package/dist/analyze/edge-filters.d.ts.map +1 -1
- package/dist/analyze/edge-filters.js +78 -2
- package/dist/analyze/edge-filters.js.map +1 -1
- package/dist/analyze/field-scope.d.ts +25 -0
- package/dist/analyze/field-scope.d.ts.map +1 -0
- package/dist/analyze/field-scope.js +94 -0
- package/dist/analyze/field-scope.js.map +1 -0
- package/dist/analyze/find-nodes.d.ts +48 -12
- package/dist/analyze/find-nodes.d.ts.map +1 -1
- package/dist/analyze/find-nodes.js +323 -12
- package/dist/analyze/find-nodes.js.map +1 -1
- package/dist/analyze/findings.d.ts.map +1 -1
- package/dist/analyze/findings.js +14 -0
- package/dist/analyze/findings.js.map +1 -1
- package/dist/analyze/git-diff.d.ts +27 -1
- package/dist/analyze/git-diff.d.ts.map +1 -1
- package/dist/analyze/git-diff.js +198 -26
- package/dist/analyze/git-diff.js.map +1 -1
- package/dist/analyze/governor.d.ts +25 -4
- package/dist/analyze/governor.d.ts.map +1 -1
- package/dist/analyze/governor.js +82 -18
- package/dist/analyze/governor.js.map +1 -1
- package/dist/analyze/index.d.ts +6 -0
- package/dist/analyze/index.d.ts.map +1 -1
- package/dist/analyze/index.js +6 -0
- package/dist/analyze/index.js.map +1 -1
- package/dist/analyze/path-to-qname.d.ts +9 -0
- package/dist/analyze/path-to-qname.d.ts.map +1 -1
- package/dist/analyze/path-to-qname.js +58 -15
- package/dist/analyze/path-to-qname.js.map +1 -1
- package/dist/analyze/populate.d.ts +40 -0
- package/dist/analyze/populate.d.ts.map +1 -1
- package/dist/analyze/populate.js +148 -48
- package/dist/analyze/populate.js.map +1 -1
- package/dist/analyze/pseudo-endpoints.d.ts +67 -0
- package/dist/analyze/pseudo-endpoints.d.ts.map +1 -0
- package/dist/analyze/pseudo-endpoints.js +78 -0
- package/dist/analyze/pseudo-endpoints.js.map +1 -0
- package/dist/analyze/security.d.ts +2 -0
- package/dist/analyze/security.d.ts.map +1 -1
- package/dist/analyze/security.js +44 -15
- package/dist/analyze/security.js.map +1 -1
- package/dist/analyze/test-coverage.d.ts +48 -0
- package/dist/analyze/test-coverage.d.ts.map +1 -1
- package/dist/analyze/test-coverage.js +72 -1
- package/dist/analyze/test-coverage.js.map +1 -1
- package/dist/analyze/wip-changed-files.d.ts +88 -0
- package/dist/analyze/wip-changed-files.d.ts.map +1 -0
- package/dist/analyze/wip-changed-files.js +422 -0
- package/dist/analyze/wip-changed-files.js.map +1 -0
- package/dist/analyze/wip-impact.d.ts +59 -0
- package/dist/analyze/wip-impact.d.ts.map +1 -1
- package/dist/analyze/wip-impact.js +199 -126
- package/dist/analyze/wip-impact.js.map +1 -1
- package/dist/domain/apex-platform.d.ts +10 -0
- package/dist/domain/apex-platform.d.ts.map +1 -0
- package/dist/domain/apex-platform.js +231 -0
- package/dist/domain/apex-platform.js.map +1 -0
- package/dist/domain/index.d.ts +2 -0
- package/dist/domain/index.d.ts.map +1 -1
- package/dist/domain/index.js +2 -0
- package/dist/domain/index.js.map +1 -1
- package/dist/domain/rel-types.d.ts +7 -0
- package/dist/domain/rel-types.d.ts.map +1 -1
- package/dist/domain/rel-types.js +7 -0
- package/dist/domain/rel-types.js.map +1 -1
- package/dist/domain/standard-sobjects.d.ts +20 -0
- package/dist/domain/standard-sobjects.d.ts.map +1 -0
- package/dist/domain/standard-sobjects.js +183 -0
- package/dist/domain/standard-sobjects.js.map +1 -0
- package/dist/embedding/cache.d.ts +41 -0
- package/dist/embedding/cache.d.ts.map +1 -0
- package/dist/embedding/cache.js +69 -0
- package/dist/embedding/cache.js.map +1 -0
- package/dist/embedding/embed.d.ts +59 -0
- package/dist/embedding/embed.d.ts.map +1 -1
- package/dist/embedding/embed.js +193 -28
- package/dist/embedding/embed.js.map +1 -1
- package/dist/embedding/index.d.ts +7 -0
- package/dist/embedding/index.d.ts.map +1 -1
- package/dist/embedding/index.js +4 -0
- package/dist/embedding/index.js.map +1 -1
- package/dist/embedding/pool.d.ts +66 -6
- package/dist/embedding/pool.d.ts.map +1 -1
- package/dist/embedding/pool.js +156 -6
- package/dist/embedding/pool.js.map +1 -1
- package/dist/embedding/queue.d.ts +166 -9
- package/dist/embedding/queue.d.ts.map +1 -1
- package/dist/embedding/queue.js +397 -39
- package/dist/embedding/queue.js.map +1 -1
- package/dist/embedding/tokenize.d.ts +18 -0
- package/dist/embedding/tokenize.d.ts.map +1 -0
- package/dist/embedding/tokenize.js +43 -0
- package/dist/embedding/tokenize.js.map +1 -0
- package/dist/embedding/worker.d.ts +0 -5
- package/dist/embedding/worker.d.ts.map +1 -1
- package/dist/embedding/worker.js +27 -4
- package/dist/embedding/worker.js.map +1 -1
- package/dist/extractors/filesystem/index.d.ts +21 -1
- package/dist/extractors/filesystem/index.d.ts.map +1 -1
- package/dist/extractors/filesystem/index.js +195 -38
- package/dist/extractors/filesystem/index.js.map +1 -1
- package/dist/extractors/filesystem/vlocity-datapacks.d.ts +27 -0
- package/dist/extractors/filesystem/vlocity-datapacks.d.ts.map +1 -0
- package/dist/extractors/filesystem/vlocity-datapacks.js +201 -0
- package/dist/extractors/filesystem/vlocity-datapacks.js.map +1 -0
- package/dist/extractors/interfaces/metadata-source.d.ts +29 -0
- package/dist/extractors/interfaces/metadata-source.d.ts.map +1 -1
- package/dist/extractors/live-org/bulk-retrieve.d.ts +37 -1
- package/dist/extractors/live-org/bulk-retrieve.d.ts.map +1 -1
- package/dist/extractors/live-org/bulk-retrieve.js +233 -50
- package/dist/extractors/live-org/bulk-retrieve.js.map +1 -1
- package/dist/extractors/live-org/capabilities.d.ts +15 -0
- package/dist/extractors/live-org/capabilities.d.ts.map +1 -1
- package/dist/extractors/live-org/capabilities.js +54 -9
- package/dist/extractors/live-org/capabilities.js.map +1 -1
- package/dist/extractors/live-org/extractors/apex.d.ts +12 -2
- package/dist/extractors/live-org/extractors/apex.d.ts.map +1 -1
- package/dist/extractors/live-org/extractors/apex.js +151 -80
- package/dist/extractors/live-org/extractors/apex.js.map +1 -1
- package/dist/extractors/live-org/extractors/custom-settings.d.ts +2 -1
- package/dist/extractors/live-org/extractors/custom-settings.d.ts.map +1 -1
- package/dist/extractors/live-org/extractors/custom-settings.js +19 -9
- package/dist/extractors/live-org/extractors/custom-settings.js.map +1 -1
- package/dist/extractors/live-org/extractors/flow.d.ts +2 -1
- package/dist/extractors/live-org/extractors/flow.d.ts.map +1 -1
- package/dist/extractors/live-org/extractors/flow.js +12 -3
- package/dist/extractors/live-org/extractors/flow.js.map +1 -1
- package/dist/extractors/live-org/extractors/generic-metadata.d.ts +23 -3
- package/dist/extractors/live-org/extractors/generic-metadata.d.ts.map +1 -1
- package/dist/extractors/live-org/extractors/generic-metadata.js +110 -25
- package/dist/extractors/live-org/extractors/generic-metadata.js.map +1 -1
- package/dist/extractors/live-org/extractors/integration.d.ts +2 -1
- package/dist/extractors/live-org/extractors/integration.d.ts.map +1 -1
- package/dist/extractors/live-org/extractors/integration.js +14 -5
- package/dist/extractors/live-org/extractors/integration.js.map +1 -1
- package/dist/extractors/live-org/extractors/lwc.d.ts +2 -1
- package/dist/extractors/live-org/extractors/lwc.d.ts.map +1 -1
- package/dist/extractors/live-org/extractors/lwc.js +14 -6
- package/dist/extractors/live-org/extractors/lwc.js.map +1 -1
- package/dist/extractors/live-org/extractors/object.d.ts +2 -11
- package/dist/extractors/live-org/extractors/object.d.ts.map +1 -1
- package/dist/extractors/live-org/extractors/object.js +127 -226
- package/dist/extractors/live-org/extractors/object.js.map +1 -1
- package/dist/extractors/live-org/extractors/omnistudio.d.ts +3 -0
- package/dist/extractors/live-org/extractors/omnistudio.d.ts.map +1 -1
- package/dist/extractors/live-org/extractors/omnistudio.js +57 -22
- package/dist/extractors/live-org/extractors/omnistudio.js.map +1 -1
- package/dist/extractors/live-org/extractors/security.d.ts +12 -1
- package/dist/extractors/live-org/extractors/security.d.ts.map +1 -1
- package/dist/extractors/live-org/extractors/security.js +29 -7
- package/dist/extractors/live-org/extractors/security.js.map +1 -1
- package/dist/extractors/live-org/rate-limit.d.ts +7 -1
- package/dist/extractors/live-org/rate-limit.d.ts.map +1 -1
- package/dist/extractors/live-org/rate-limit.js +53 -10
- package/dist/extractors/live-org/rate-limit.js.map +1 -1
- package/dist/extractors/live-org/retry.d.ts +136 -0
- package/dist/extractors/live-org/retry.d.ts.map +1 -0
- package/dist/extractors/live-org/retry.js +416 -0
- package/dist/extractors/live-org/retry.js.map +1 -0
- package/dist/extractors/live-org/vlocity/runner.d.ts +2 -1
- package/dist/extractors/live-org/vlocity/runner.d.ts.map +1 -1
- package/dist/extractors/live-org/vlocity/runner.js +95 -67
- package/dist/extractors/live-org/vlocity/runner.js.map +1 -1
- package/dist/extractors/vlocity-shared/row.d.ts +19 -0
- package/dist/extractors/vlocity-shared/row.d.ts.map +1 -0
- package/dist/extractors/vlocity-shared/row.js +69 -0
- package/dist/extractors/vlocity-shared/row.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/ingest/delta.d.ts +70 -0
- package/dist/ingest/delta.d.ts.map +1 -0
- package/dist/ingest/delta.js +534 -0
- package/dist/ingest/delta.js.map +1 -0
- package/dist/ingest/detect-deletions-guard.d.ts +34 -0
- package/dist/ingest/detect-deletions-guard.d.ts.map +1 -1
- package/dist/ingest/detect-deletions-guard.js +59 -0
- package/dist/ingest/detect-deletions-guard.js.map +1 -1
- package/dist/ingest/index.d.ts +8 -1
- package/dist/ingest/index.d.ts.map +1 -1
- package/dist/ingest/index.js +4 -0
- package/dist/ingest/index.js.map +1 -1
- package/dist/ingest/live-ingest.d.ts +171 -7
- package/dist/ingest/live-ingest.d.ts.map +1 -1
- package/dist/ingest/live-ingest.js +1014 -249
- package/dist/ingest/live-ingest.js.map +1 -1
- package/dist/ingest/lock.d.ts +47 -0
- package/dist/ingest/lock.d.ts.map +1 -0
- package/dist/ingest/lock.js +222 -0
- package/dist/ingest/lock.js.map +1 -0
- package/dist/ingest/member-rows.d.ts +88 -0
- package/dist/ingest/member-rows.d.ts.map +1 -0
- package/dist/ingest/member-rows.js +152 -0
- package/dist/ingest/member-rows.js.map +1 -0
- package/dist/ingest/offline-org.d.ts +8 -0
- package/dist/ingest/offline-org.d.ts.map +1 -0
- package/dist/ingest/offline-org.js +41 -0
- package/dist/ingest/offline-org.js.map +1 -0
- package/dist/ingest/parse-member.d.ts +53 -0
- package/dist/ingest/parse-member.d.ts.map +1 -0
- package/dist/ingest/parse-member.js +276 -0
- package/dist/ingest/parse-member.js.map +1 -0
- package/dist/ingest/parse-pool.d.ts +139 -0
- package/dist/ingest/parse-pool.d.ts.map +1 -0
- package/dist/ingest/parse-pool.js +593 -0
- package/dist/ingest/parse-pool.js.map +1 -0
- package/dist/ingest/parse-worker.d.ts +3 -0
- package/dist/ingest/parse-worker.d.ts.map +1 -0
- package/dist/ingest/parse-worker.js +100 -0
- package/dist/ingest/parse-worker.js.map +1 -0
- package/dist/ingest/profile.d.ts +27 -0
- package/dist/ingest/profile.d.ts.map +1 -0
- package/dist/ingest/profile.js +48 -0
- package/dist/ingest/profile.js.map +1 -0
- package/dist/ingest/resolver-gates.d.ts +12 -0
- package/dist/ingest/resolver-gates.d.ts.map +1 -0
- package/dist/ingest/resolver-gates.js +53 -0
- package/dist/ingest/resolver-gates.js.map +1 -0
- package/dist/parsers/apex/arity-resolver.d.ts +16 -3
- package/dist/parsers/apex/arity-resolver.d.ts.map +1 -1
- package/dist/parsers/apex/arity-resolver.js +31 -2
- package/dist/parsers/apex/arity-resolver.js.map +1 -1
- package/dist/parsers/apex/ast-extractor.d.ts +4 -0
- package/dist/parsers/apex/ast-extractor.d.ts.map +1 -1
- package/dist/parsers/apex/ast-extractor.js +96 -29
- package/dist/parsers/apex/ast-extractor.js.map +1 -1
- package/dist/parsers/apex/class-refs.d.ts +78 -0
- package/dist/parsers/apex/class-refs.d.ts.map +1 -0
- package/dist/parsers/apex/class-refs.js +465 -0
- package/dist/parsers/apex/class-refs.js.map +1 -0
- package/dist/parsers/apex/class.d.ts +158 -0
- package/dist/parsers/apex/class.d.ts.map +1 -1
- package/dist/parsers/apex/class.js +1025 -183
- package/dist/parsers/apex/class.js.map +1 -1
- package/dist/parsers/apex/dynamic-soql.d.ts +52 -0
- package/dist/parsers/apex/dynamic-soql.d.ts.map +1 -0
- package/dist/parsers/apex/dynamic-soql.js +427 -0
- package/dist/parsers/apex/dynamic-soql.js.map +1 -0
- package/dist/parsers/apex/field-access.d.ts +65 -0
- package/dist/parsers/apex/field-access.d.ts.map +1 -0
- package/dist/parsers/apex/field-access.js +438 -0
- package/dist/parsers/apex/field-access.js.map +1 -0
- package/dist/parsers/apex/interface-ref-resolver.d.ts +32 -0
- package/dist/parsers/apex/interface-ref-resolver.d.ts.map +1 -0
- package/dist/parsers/apex/interface-ref-resolver.js +64 -0
- package/dist/parsers/apex/interface-ref-resolver.js.map +1 -0
- package/dist/parsers/apex/name-refs.d.ts +83 -0
- package/dist/parsers/apex/name-refs.d.ts.map +1 -0
- package/dist/parsers/apex/name-refs.js +465 -0
- package/dist/parsers/apex/name-refs.js.map +1 -0
- package/dist/parsers/apex/page-refs.d.ts +11 -0
- package/dist/parsers/apex/page-refs.d.ts.map +1 -0
- package/dist/parsers/apex/page-refs.js +34 -0
- package/dist/parsers/apex/page-refs.js.map +1 -0
- package/dist/parsers/apex/ref-resolver.d.ts +58 -0
- package/dist/parsers/apex/ref-resolver.d.ts.map +1 -0
- package/dist/parsers/apex/ref-resolver.js +348 -0
- package/dist/parsers/apex/ref-resolver.js.map +1 -0
- package/dist/parsers/apex/soql-fields.d.ts +75 -0
- package/dist/parsers/apex/soql-fields.d.ts.map +1 -0
- package/dist/parsers/apex/soql-fields.js +338 -0
- package/dist/parsers/apex/soql-fields.js.map +1 -0
- package/dist/parsers/apex/trigger.d.ts.map +1 -1
- package/dist/parsers/apex/trigger.js +90 -2
- package/dist/parsers/apex/trigger.js.map +1 -1
- package/dist/parsers/apex/vlocity-calls.d.ts +25 -0
- package/dist/parsers/apex/vlocity-calls.d.ts.map +1 -0
- package/dist/parsers/apex/vlocity-calls.js +225 -0
- package/dist/parsers/apex/vlocity-calls.js.map +1 -0
- package/dist/parsers/aura/bundle.d.ts +39 -0
- package/dist/parsers/aura/bundle.d.ts.map +1 -0
- package/dist/parsers/aura/bundle.js +269 -0
- package/dist/parsers/aura/bundle.js.map +1 -0
- package/dist/parsers/aura/embed-resolver.d.ts +17 -0
- package/dist/parsers/aura/embed-resolver.d.ts.map +1 -0
- package/dist/parsers/aura/embed-resolver.js +58 -0
- package/dist/parsers/aura/embed-resolver.js.map +1 -0
- package/dist/parsers/aura/index.d.ts +4 -0
- package/dist/parsers/aura/index.d.ts.map +1 -0
- package/dist/parsers/aura/index.js +6 -0
- package/dist/parsers/aura/index.js.map +1 -0
- package/dist/parsers/common.d.ts +9 -0
- package/dist/parsers/common.d.ts.map +1 -1
- package/dist/parsers/common.js +17 -0
- package/dist/parsers/common.js.map +1 -1
- package/dist/parsers/cross-flavor-resolver.js +8 -2
- package/dist/parsers/cross-flavor-resolver.js.map +1 -1
- package/dist/parsers/flow/invocable-resolver.d.ts.map +1 -1
- package/dist/parsers/flow/invocable-resolver.js +2 -0
- package/dist/parsers/flow/invocable-resolver.js.map +1 -1
- package/dist/parsers/flow/parser.d.ts +9 -0
- package/dist/parsers/flow/parser.d.ts.map +1 -1
- package/dist/parsers/flow/parser.js +327 -2
- package/dist/parsers/flow/parser.js.map +1 -1
- package/dist/parsers/flow/relationship-resolver.d.ts +34 -0
- package/dist/parsers/flow/relationship-resolver.d.ts.map +1 -0
- package/dist/parsers/flow/relationship-resolver.js +199 -0
- package/dist/parsers/flow/relationship-resolver.js.map +1 -0
- package/dist/parsers/generic/opaque-node-parser.d.ts +5 -1
- package/dist/parsers/generic/opaque-node-parser.d.ts.map +1 -1
- package/dist/parsers/generic/opaque-node-parser.js +37 -5
- package/dist/parsers/generic/opaque-node-parser.js.map +1 -1
- package/dist/parsers/generic/reflection-walker.d.ts +7 -0
- package/dist/parsers/generic/reflection-walker.d.ts.map +1 -1
- package/dist/parsers/generic/reflection-walker.js +37 -10
- package/dist/parsers/generic/reflection-walker.js.map +1 -1
- package/dist/parsers/hash-salts.d.ts +72 -0
- package/dist/parsers/hash-salts.d.ts.map +1 -0
- package/dist/parsers/hash-salts.js +91 -0
- package/dist/parsers/hash-salts.js.map +1 -0
- package/dist/parsers/index.d.ts +2 -0
- package/dist/parsers/index.d.ts.map +1 -1
- package/dist/parsers/index.js +2 -0
- package/dist/parsers/index.js.map +1 -1
- package/dist/parsers/lwc/bundle.d.ts +1 -0
- package/dist/parsers/lwc/bundle.d.ts.map +1 -1
- package/dist/parsers/lwc/bundle.js +37 -2
- package/dist/parsers/lwc/bundle.js.map +1 -1
- package/dist/parsers/lwc/field-key-resolver.d.ts +32 -0
- package/dist/parsers/lwc/field-key-resolver.d.ts.map +1 -0
- package/dist/parsers/lwc/field-key-resolver.js +92 -0
- package/dist/parsers/lwc/field-key-resolver.js.map +1 -0
- package/dist/parsers/lwc/html-visitor.d.ts +1 -1
- package/dist/parsers/lwc/html-visitor.d.ts.map +1 -1
- package/dist/parsers/lwc/html-visitor.js +78 -1
- package/dist/parsers/lwc/html-visitor.js.map +1 -1
- package/dist/parsers/lwc/js-visitor.d.ts +16 -0
- package/dist/parsers/lwc/js-visitor.d.ts.map +1 -1
- package/dist/parsers/lwc/js-visitor.js +348 -10
- package/dist/parsers/lwc/js-visitor.js.map +1 -1
- package/dist/parsers/lwc/omnidef.d.ts +10 -0
- package/dist/parsers/lwc/omnidef.d.ts.map +1 -0
- package/dist/parsers/lwc/omnidef.js +127 -0
- package/dist/parsers/lwc/omnidef.js.map +1 -0
- package/dist/parsers/lwc/xml-meta.d.ts.map +1 -1
- package/dist/parsers/lwc/xml-meta.js +16 -1
- package/dist/parsers/lwc/xml-meta.js.map +1 -1
- package/dist/parsers/object/formula-hop-resolver.d.ts +33 -0
- package/dist/parsers/object/formula-hop-resolver.d.ts.map +1 -0
- package/dist/parsers/object/formula-hop-resolver.js +60 -0
- package/dist/parsers/object/formula-hop-resolver.js.map +1 -0
- package/dist/parsers/object/formula-refs.d.ts +40 -0
- package/dist/parsers/object/formula-refs.d.ts.map +1 -0
- package/dist/parsers/object/formula-refs.js +129 -0
- package/dist/parsers/object/formula-refs.js.map +1 -0
- package/dist/parsers/object/object.d.ts +3 -0
- package/dist/parsers/object/object.d.ts.map +1 -1
- package/dist/parsers/object/object.js +53 -52
- package/dist/parsers/object/object.js.map +1 -1
- package/dist/parsers/omnistudio/data-transform.d.ts.map +1 -1
- package/dist/parsers/omnistudio/data-transform.js +2 -2
- package/dist/parsers/omnistudio/data-transform.js.map +1 -1
- package/dist/parsers/omnistudio/integration-procedure.d.ts.map +1 -1
- package/dist/parsers/omnistudio/integration-procedure.js +4 -5
- package/dist/parsers/omnistudio/integration-procedure.js.map +1 -1
- package/dist/parsers/omnistudio/overlap-detector.d.ts.map +1 -1
- package/dist/parsers/omnistudio/overlap-detector.js +27 -2
- package/dist/parsers/omnistudio/overlap-detector.js.map +1 -1
- package/dist/parsers/omnistudio/process.d.ts.map +1 -1
- package/dist/parsers/omnistudio/process.js +4 -5
- package/dist/parsers/omnistudio/process.js.map +1 -1
- package/dist/parsers/omnistudio/remote-refs.d.ts +11 -0
- package/dist/parsers/omnistudio/remote-refs.d.ts.map +1 -0
- package/dist/parsers/omnistudio/remote-refs.js +17 -0
- package/dist/parsers/omnistudio/remote-refs.js.map +1 -0
- package/dist/parsers/omnistudio/ui-card.d.ts.map +1 -1
- package/dist/parsers/omnistudio/ui-card.js +4 -5
- package/dist/parsers/omnistudio/ui-card.js.map +1 -1
- package/dist/parsers/resolver-prune.d.ts +14 -0
- package/dist/parsers/resolver-prune.d.ts.map +1 -0
- package/dist/parsers/resolver-prune.js +29 -0
- package/dist/parsers/resolver-prune.js.map +1 -0
- package/dist/parsers/rules/_engine.d.ts.map +1 -1
- package/dist/parsers/rules/_engine.js +4 -0
- package/dist/parsers/rules/_engine.js.map +1 -1
- package/dist/parsers/rules/_engine.ts +3 -0
- package/dist/parsers/rules/_loader.d.ts +8 -0
- package/dist/parsers/rules/_loader.d.ts.map +1 -1
- package/dist/parsers/rules/_loader.js +17 -0
- package/dist/parsers/rules/_loader.js.map +1 -1
- package/dist/parsers/rules/_loader.ts +19 -0
- package/dist/parsers/rules/_schema.d.ts +12 -12
- package/dist/parsers/rules/_selectors.d.ts +1 -0
- package/dist/parsers/rules/_selectors.d.ts.map +1 -1
- package/dist/parsers/rules/_selectors.js +6 -0
- package/dist/parsers/rules/_selectors.js.map +1 -1
- package/dist/parsers/rules/_selectors.ts +6 -0
- package/dist/parsers/rules/apex-component.yml +49 -4
- package/dist/parsers/rules/apex-page.yml +49 -4
- package/dist/parsers/rules/approval-process.yml +25 -5
- package/dist/parsers/rules/custom-metadata-type.yml +7 -7
- package/dist/parsers/rules/custom-tab.yml +41 -0
- package/dist/parsers/rules/lightning-page.yml +4 -2
- package/dist/parsers/rules/workflow.yml +30 -10
- package/dist/parsers/vf/refs.d.ts +39 -0
- package/dist/parsers/vf/refs.d.ts.map +1 -0
- package/dist/parsers/vf/refs.js +152 -0
- package/dist/parsers/vf/refs.js.map +1 -0
- package/dist/parsers/vlocity/apex-resolver.d.ts +21 -0
- package/dist/parsers/vlocity/apex-resolver.d.ts.map +1 -0
- package/dist/parsers/vlocity/apex-resolver.js +115 -0
- package/dist/parsers/vlocity/apex-resolver.js.map +1 -0
- package/dist/parsers/vlocity/common.d.ts +56 -1
- package/dist/parsers/vlocity/common.d.ts.map +1 -1
- package/dist/parsers/vlocity/common.js +275 -7
- package/dist/parsers/vlocity/common.js.map +1 -1
- package/dist/parsers/vlocity/data-raptor.d.ts +9 -0
- package/dist/parsers/vlocity/data-raptor.d.ts.map +1 -1
- package/dist/parsers/vlocity/data-raptor.js +133 -31
- package/dist/parsers/vlocity/data-raptor.js.map +1 -1
- package/dist/parsers/vlocity/datapack-refs.d.ts +22 -0
- package/dist/parsers/vlocity/datapack-refs.d.ts.map +1 -0
- package/dist/parsers/vlocity/datapack-refs.js +126 -0
- package/dist/parsers/vlocity/datapack-refs.js.map +1 -0
- package/dist/parsers/vlocity/dr-relationship-resolver.d.ts +26 -0
- package/dist/parsers/vlocity/dr-relationship-resolver.d.ts.map +1 -0
- package/dist/parsers/vlocity/dr-relationship-resolver.js +137 -0
- package/dist/parsers/vlocity/dr-relationship-resolver.js.map +1 -0
- package/dist/parsers/vlocity/integration-procedure.d.ts.map +1 -1
- package/dist/parsers/vlocity/integration-procedure.js +15 -48
- package/dist/parsers/vlocity/integration-procedure.js.map +1 -1
- package/dist/parsers/vlocity/name-match-resolver.d.ts +21 -0
- package/dist/parsers/vlocity/name-match-resolver.d.ts.map +1 -0
- package/dist/parsers/vlocity/name-match-resolver.js +97 -0
- package/dist/parsers/vlocity/name-match-resolver.js.map +1 -0
- package/dist/parsers/vlocity/omni-script.d.ts.map +1 -1
- package/dist/parsers/vlocity/omni-script.js +18 -32
- package/dist/parsers/vlocity/omni-script.js.map +1 -1
- package/dist/parsers/vlocity/vlocity-card.d.ts.map +1 -1
- package/dist/parsers/vlocity/vlocity-card.js +30 -36
- package/dist/parsers/vlocity/vlocity-card.js.map +1 -1
- package/dist/render/mermaid/dependency-graph.d.ts.map +1 -1
- package/dist/render/mermaid/dependency-graph.js +13 -1
- package/dist/render/mermaid/dependency-graph.js.map +1 -1
- package/dist/render/mermaid/diff.d.ts.map +1 -1
- package/dist/render/mermaid/diff.js +4 -2
- package/dist/render/mermaid/diff.js.map +1 -1
- package/dist/render/mermaid/shared.d.ts +7 -0
- package/dist/render/mermaid/shared.d.ts.map +1 -1
- package/dist/render/mermaid/shared.js +15 -6
- package/dist/render/mermaid/shared.js.map +1 -1
- package/dist/storage/index.d.ts +3 -3
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/storage/index.js +2 -2
- package/dist/storage/index.js.map +1 -1
- package/dist/storage/interfaces.d.ts +155 -1
- package/dist/storage/interfaces.d.ts.map +1 -1
- package/dist/storage/sqlite/graph-store.d.ts +352 -3
- package/dist/storage/sqlite/graph-store.d.ts.map +1 -1
- package/dist/storage/sqlite/graph-store.js +1683 -74
- package/dist/storage/sqlite/graph-store.js.map +1 -1
- package/dist/storage/sqlite/migrations.d.ts +11 -0
- package/dist/storage/sqlite/migrations.d.ts.map +1 -1
- package/dist/storage/sqlite/migrations.js +226 -11
- package/dist/storage/sqlite/migrations.js.map +1 -1
- package/dist/storage/sqlite/snapshot-store.d.ts +79 -3
- package/dist/storage/sqlite/snapshot-store.d.ts.map +1 -1
- package/dist/storage/sqlite/snapshot-store.js +500 -100
- package/dist/storage/sqlite/snapshot-store.js.map +1 -1
- package/dist/storage/sqlite/snapshot-versions.d.ts +51 -0
- package/dist/storage/sqlite/snapshot-versions.d.ts.map +1 -0
- package/dist/storage/sqlite/snapshot-versions.js +209 -0
- package/dist/storage/sqlite/snapshot-versions.js.map +1 -0
- package/dist/storage/sqlite/vector-store.d.ts +12 -0
- package/dist/storage/sqlite/vector-store.d.ts.map +1 -1
- package/dist/storage/sqlite/vector-store.js +57 -14
- package/dist/storage/sqlite/vector-store.js.map +1 -1
- package/dist/util/process-owner.d.ts +35 -0
- package/dist/util/process-owner.d.ts.map +1 -0
- package/dist/util/process-owner.js +87 -0
- package/dist/util/process-owner.js.map +1 -0
- package/dist/util/worker-heap-cap.d.ts +10 -0
- package/dist/util/worker-heap-cap.d.ts.map +1 -0
- package/dist/util/worker-heap-cap.js +65 -0
- package/dist/util/worker-heap-cap.js.map +1 -0
- package/package.json +6 -7
- package/dist/analyze/__tests__/audit-graph.test.d.ts +0 -2
- package/dist/analyze/__tests__/audit-graph.test.d.ts.map +0 -1
- package/dist/analyze/__tests__/audit-graph.test.js +0 -201
- package/dist/analyze/__tests__/audit-graph.test.js.map +0 -1
- package/dist/analyze/__tests__/cross-org-two-store.test.d.ts +0 -2
- package/dist/analyze/__tests__/cross-org-two-store.test.d.ts.map +0 -1
- package/dist/analyze/__tests__/cross-org-two-store.test.js +0 -68
- package/dist/analyze/__tests__/cross-org-two-store.test.js.map +0 -1
- package/dist/analyze/__tests__/dead-code-confidence.test.d.ts +0 -2
- package/dist/analyze/__tests__/dead-code-confidence.test.d.ts.map +0 -1
- package/dist/analyze/__tests__/dead-code-confidence.test.js +0 -66
- package/dist/analyze/__tests__/dead-code-confidence.test.js.map +0 -1
- package/dist/analyze/__tests__/deployment-manifest.test.d.ts +0 -2
- package/dist/analyze/__tests__/deployment-manifest.test.d.ts.map +0 -1
- package/dist/analyze/__tests__/deployment-manifest.test.js +0 -66
- package/dist/analyze/__tests__/deployment-manifest.test.js.map +0 -1
- package/dist/analyze/__tests__/edge-filters.test.d.ts +0 -2
- package/dist/analyze/__tests__/edge-filters.test.d.ts.map +0 -1
- package/dist/analyze/__tests__/edge-filters.test.js +0 -66
- package/dist/analyze/__tests__/edge-filters.test.js.map +0 -1
- package/dist/analyze/__tests__/find-nodes.test.d.ts +0 -2
- package/dist/analyze/__tests__/find-nodes.test.d.ts.map +0 -1
- package/dist/analyze/__tests__/find-nodes.test.js +0 -129
- package/dist/analyze/__tests__/find-nodes.test.js.map +0 -1
- package/dist/analyze/__tests__/findings.test.d.ts +0 -2
- package/dist/analyze/__tests__/findings.test.d.ts.map +0 -1
- package/dist/analyze/__tests__/findings.test.js +0 -100
- package/dist/analyze/__tests__/findings.test.js.map +0 -1
- package/dist/analyze/__tests__/governor-risks-detection.test.d.ts +0 -2
- package/dist/analyze/__tests__/governor-risks-detection.test.d.ts.map +0 -1
- package/dist/analyze/__tests__/governor-risks-detection.test.js +0 -160
- package/dist/analyze/__tests__/governor-risks-detection.test.js.map +0 -1
- package/dist/analyze/__tests__/populate.test.d.ts +0 -2
- package/dist/analyze/__tests__/populate.test.d.ts.map +0 -1
- package/dist/analyze/__tests__/populate.test.js +0 -129
- package/dist/analyze/__tests__/populate.test.js.map +0 -1
- package/dist/analyze/__tests__/security-fls-filter.test.d.ts +0 -2
- package/dist/analyze/__tests__/security-fls-filter.test.d.ts.map +0 -1
- package/dist/analyze/__tests__/security-fls-filter.test.js +0 -23
- package/dist/analyze/__tests__/security-fls-filter.test.js.map +0 -1
- package/dist/analyze/__tests__/traversal-caps.test.d.ts +0 -2
- package/dist/analyze/__tests__/traversal-caps.test.d.ts.map +0 -1
- package/dist/analyze/__tests__/traversal-caps.test.js +0 -129
- package/dist/analyze/__tests__/traversal-caps.test.js.map +0 -1
- package/dist/analyze/__tests__/wip-impact.test.d.ts +0 -2
- package/dist/analyze/__tests__/wip-impact.test.d.ts.map +0 -1
- package/dist/analyze/__tests__/wip-impact.test.js +0 -134
- package/dist/analyze/__tests__/wip-impact.test.js.map +0 -1
- package/dist/embedding/__tests__/embed.test.d.ts +0 -2
- package/dist/embedding/__tests__/embed.test.d.ts.map +0 -1
- package/dist/embedding/__tests__/embed.test.js +0 -72
- package/dist/embedding/__tests__/embed.test.js.map +0 -1
- package/dist/embedding/__tests__/queue.test.d.ts +0 -2
- package/dist/embedding/__tests__/queue.test.d.ts.map +0 -1
- package/dist/embedding/__tests__/queue.test.js +0 -64
- package/dist/embedding/__tests__/queue.test.js.map +0 -1
- package/dist/extractors/__tests__/network-egress.test.d.ts +0 -2
- package/dist/extractors/__tests__/network-egress.test.d.ts.map +0 -1
- package/dist/extractors/__tests__/network-egress.test.js +0 -32
- package/dist/extractors/__tests__/network-egress.test.js.map +0 -1
- package/dist/extractors/filesystem/__tests__/filesystem.test.d.ts +0 -2
- package/dist/extractors/filesystem/__tests__/filesystem.test.d.ts.map +0 -1
- package/dist/extractors/filesystem/__tests__/filesystem.test.js +0 -96
- package/dist/extractors/filesystem/__tests__/filesystem.test.js.map +0 -1
- package/dist/extractors/live-org/__tests__/_jsforce-mock.d.ts +0 -38
- package/dist/extractors/live-org/__tests__/_jsforce-mock.d.ts.map +0 -1
- package/dist/extractors/live-org/__tests__/_jsforce-mock.js +0 -96
- package/dist/extractors/live-org/__tests__/_jsforce-mock.js.map +0 -1
- package/dist/extractors/live-org/__tests__/auth.test.d.ts +0 -2
- package/dist/extractors/live-org/__tests__/auth.test.d.ts.map +0 -1
- package/dist/extractors/live-org/__tests__/auth.test.js +0 -85
- package/dist/extractors/live-org/__tests__/auth.test.js.map +0 -1
- package/dist/extractors/live-org/__tests__/bulk-retrieve.test.d.ts +0 -2
- package/dist/extractors/live-org/__tests__/bulk-retrieve.test.d.ts.map +0 -1
- package/dist/extractors/live-org/__tests__/bulk-retrieve.test.js +0 -150
- package/dist/extractors/live-org/__tests__/bulk-retrieve.test.js.map +0 -1
- package/dist/extractors/live-org/__tests__/capabilities.test.d.ts +0 -2
- package/dist/extractors/live-org/__tests__/capabilities.test.d.ts.map +0 -1
- package/dist/extractors/live-org/__tests__/capabilities.test.js +0 -54
- package/dist/extractors/live-org/__tests__/capabilities.test.js.map +0 -1
- package/dist/extractors/live-org/__tests__/custom-settings.test.d.ts +0 -2
- package/dist/extractors/live-org/__tests__/custom-settings.test.d.ts.map +0 -1
- package/dist/extractors/live-org/__tests__/custom-settings.test.js +0 -79
- package/dist/extractors/live-org/__tests__/custom-settings.test.js.map +0 -1
- package/dist/extractors/live-org/__tests__/discovery.test.d.ts +0 -2
- package/dist/extractors/live-org/__tests__/discovery.test.d.ts.map +0 -1
- package/dist/extractors/live-org/__tests__/discovery.test.js +0 -55
- package/dist/extractors/live-org/__tests__/discovery.test.js.map +0 -1
- package/dist/extractors/live-org/__tests__/dispatch.test.d.ts +0 -2
- package/dist/extractors/live-org/__tests__/dispatch.test.d.ts.map +0 -1
- package/dist/extractors/live-org/__tests__/dispatch.test.js +0 -68
- package/dist/extractors/live-org/__tests__/dispatch.test.js.map +0 -1
- package/dist/extractors/live-org/__tests__/extractor-enrichment.test.d.ts +0 -2
- package/dist/extractors/live-org/__tests__/extractor-enrichment.test.d.ts.map +0 -1
- package/dist/extractors/live-org/__tests__/extractor-enrichment.test.js +0 -374
- package/dist/extractors/live-org/__tests__/extractor-enrichment.test.js.map +0 -1
- package/dist/extractors/live-org/__tests__/liveness.test.d.ts +0 -2
- package/dist/extractors/live-org/__tests__/liveness.test.d.ts.map +0 -1
- package/dist/extractors/live-org/__tests__/liveness.test.js +0 -148
- package/dist/extractors/live-org/__tests__/liveness.test.js.map +0 -1
- package/dist/extractors/live-org/__tests__/mcd-baseline.test.d.ts +0 -2
- package/dist/extractors/live-org/__tests__/mcd-baseline.test.d.ts.map +0 -1
- package/dist/extractors/live-org/__tests__/mcd-baseline.test.js +0 -177
- package/dist/extractors/live-org/__tests__/mcd-baseline.test.js.map +0 -1
- package/dist/extractors/live-org/__tests__/metadata-read-batch.test.d.ts +0 -2
- package/dist/extractors/live-org/__tests__/metadata-read-batch.test.d.ts.map +0 -1
- package/dist/extractors/live-org/__tests__/metadata-read-batch.test.js +0 -75
- package/dist/extractors/live-org/__tests__/metadata-read-batch.test.js.map +0 -1
- package/dist/extractors/live-org/__tests__/omnistudio-retrieve.test.d.ts +0 -2
- package/dist/extractors/live-org/__tests__/omnistudio-retrieve.test.d.ts.map +0 -1
- package/dist/extractors/live-org/__tests__/omnistudio-retrieve.test.js +0 -135
- package/dist/extractors/live-org/__tests__/omnistudio-retrieve.test.js.map +0 -1
- package/dist/extractors/live-org/__tests__/pools.test.d.ts +0 -2
- package/dist/extractors/live-org/__tests__/pools.test.d.ts.map +0 -1
- package/dist/extractors/live-org/__tests__/pools.test.js +0 -78
- package/dist/extractors/live-org/__tests__/pools.test.js.map +0 -1
- package/dist/extractors/live-org/__tests__/rate-limit.test.d.ts +0 -2
- package/dist/extractors/live-org/__tests__/rate-limit.test.d.ts.map +0 -1
- package/dist/extractors/live-org/__tests__/rate-limit.test.js +0 -73
- package/dist/extractors/live-org/__tests__/rate-limit.test.js.map +0 -1
- package/dist/extractors/live-org/__tests__/read-only-proxy.test.d.ts +0 -2
- package/dist/extractors/live-org/__tests__/read-only-proxy.test.d.ts.map +0 -1
- package/dist/extractors/live-org/__tests__/read-only-proxy.test.js +0 -376
- package/dist/extractors/live-org/__tests__/read-only-proxy.test.js.map +0 -1
- package/dist/extractors/live-org/__tests__/soql-rebatch.test.d.ts +0 -2
- package/dist/extractors/live-org/__tests__/soql-rebatch.test.d.ts.map +0 -1
- package/dist/extractors/live-org/__tests__/soql-rebatch.test.js +0 -118
- package/dist/extractors/live-org/__tests__/soql-rebatch.test.js.map +0 -1
- package/dist/extractors/live-org/__tests__/source-member.test.d.ts +0 -2
- package/dist/extractors/live-org/__tests__/source-member.test.d.ts.map +0 -1
- package/dist/extractors/live-org/__tests__/source-member.test.js +0 -84
- package/dist/extractors/live-org/__tests__/source-member.test.js.map +0 -1
- package/dist/extractors/live-org/__tests__/stop-waiting.test.d.ts +0 -2
- package/dist/extractors/live-org/__tests__/stop-waiting.test.d.ts.map +0 -1
- package/dist/extractors/live-org/__tests__/stop-waiting.test.js +0 -243
- package/dist/extractors/live-org/__tests__/stop-waiting.test.js.map +0 -1
- package/dist/extractors/live-org/__tests__/vlocity-runner.test.d.ts +0 -2
- package/dist/extractors/live-org/__tests__/vlocity-runner.test.d.ts.map +0 -1
- package/dist/extractors/live-org/__tests__/vlocity-runner.test.js +0 -115
- package/dist/extractors/live-org/__tests__/vlocity-runner.test.js.map +0 -1
- package/dist/extractors/live-org/__tests__/watchdog-budgets.test.d.ts +0 -2
- package/dist/extractors/live-org/__tests__/watchdog-budgets.test.d.ts.map +0 -1
- package/dist/extractors/live-org/__tests__/watchdog-budgets.test.js +0 -40
- package/dist/extractors/live-org/__tests__/watchdog-budgets.test.js.map +0 -1
- package/dist/extractors/live-org/__tests__/wedge-isolation.test.d.ts +0 -2
- package/dist/extractors/live-org/__tests__/wedge-isolation.test.d.ts.map +0 -1
- package/dist/extractors/live-org/__tests__/wedge-isolation.test.js +0 -270
- package/dist/extractors/live-org/__tests__/wedge-isolation.test.js.map +0 -1
- package/dist/extractors/live-org/extractors/__tests__/apex.test.d.ts +0 -2
- package/dist/extractors/live-org/extractors/__tests__/apex.test.d.ts.map +0 -1
- package/dist/extractors/live-org/extractors/__tests__/apex.test.js +0 -73
- package/dist/extractors/live-org/extractors/__tests__/apex.test.js.map +0 -1
- package/dist/extractors/live-org/extractors/__tests__/lwc.parallel.test.d.ts +0 -2
- package/dist/extractors/live-org/extractors/__tests__/lwc.parallel.test.d.ts.map +0 -1
- package/dist/extractors/live-org/extractors/__tests__/lwc.parallel.test.js +0 -183
- package/dist/extractors/live-org/extractors/__tests__/lwc.parallel.test.js.map +0 -1
- package/dist/ingest/__tests__/config-values.test.d.ts +0 -2
- package/dist/ingest/__tests__/config-values.test.d.ts.map +0 -1
- package/dist/ingest/__tests__/config-values.test.js +0 -65
- package/dist/ingest/__tests__/config-values.test.js.map +0 -1
- package/dist/ingest/__tests__/full-sync-deletion.test.d.ts +0 -2
- package/dist/ingest/__tests__/full-sync-deletion.test.d.ts.map +0 -1
- package/dist/ingest/__tests__/full-sync-deletion.test.js +0 -207
- package/dist/ingest/__tests__/full-sync-deletion.test.js.map +0 -1
- package/dist/ingest/__tests__/incremental-deletion.test.d.ts +0 -2
- package/dist/ingest/__tests__/incremental-deletion.test.d.ts.map +0 -1
- package/dist/ingest/__tests__/incremental-deletion.test.js +0 -92
- package/dist/ingest/__tests__/incremental-deletion.test.js.map +0 -1
- package/dist/ingest/__tests__/live-ingest.detect-deletions-guard.test.d.ts +0 -10
- package/dist/ingest/__tests__/live-ingest.detect-deletions-guard.test.d.ts.map +0 -1
- package/dist/ingest/__tests__/live-ingest.detect-deletions-guard.test.js +0 -251
- package/dist/ingest/__tests__/live-ingest.detect-deletions-guard.test.js.map +0 -1
- package/dist/ingest/__tests__/live-ingest.test.d.ts +0 -2
- package/dist/ingest/__tests__/live-ingest.test.d.ts.map +0 -1
- package/dist/ingest/__tests__/live-ingest.test.js +0 -155
- package/dist/ingest/__tests__/live-ingest.test.js.map +0 -1
- package/dist/ingest/__tests__/multi-org-orchestrator.test.d.ts +0 -2
- package/dist/ingest/__tests__/multi-org-orchestrator.test.d.ts.map +0 -1
- package/dist/ingest/__tests__/multi-org-orchestrator.test.js +0 -108
- package/dist/ingest/__tests__/multi-org-orchestrator.test.js.map +0 -1
- package/dist/ingest/__tests__/parser-dispatch.test.d.ts +0 -2
- package/dist/ingest/__tests__/parser-dispatch.test.d.ts.map +0 -1
- package/dist/ingest/__tests__/parser-dispatch.test.js +0 -55
- package/dist/ingest/__tests__/parser-dispatch.test.js.map +0 -1
- package/dist/ingest/__tests__/read-only-wrapping.test.d.ts +0 -2
- package/dist/ingest/__tests__/read-only-wrapping.test.d.ts.map +0 -1
- package/dist/ingest/__tests__/read-only-wrapping.test.js +0 -62
- package/dist/ingest/__tests__/read-only-wrapping.test.js.map +0 -1
- package/dist/ingest/__tests__/vlocity-dispatch-integration.test.d.ts +0 -2
- package/dist/ingest/__tests__/vlocity-dispatch-integration.test.d.ts.map +0 -1
- package/dist/ingest/__tests__/vlocity-dispatch-integration.test.js +0 -134
- package/dist/ingest/__tests__/vlocity-dispatch-integration.test.js.map +0 -1
- package/dist/parsers/__tests__/_harness.d.ts +0 -13
- package/dist/parsers/__tests__/_harness.d.ts.map +0 -1
- package/dist/parsers/__tests__/_harness.js +0 -84
- package/dist/parsers/__tests__/_harness.js.map +0 -1
- package/dist/parsers/__tests__/apex.golden.test.d.ts +0 -2
- package/dist/parsers/__tests__/apex.golden.test.d.ts.map +0 -1
- package/dist/parsers/__tests__/apex.golden.test.js +0 -28
- package/dist/parsers/__tests__/apex.golden.test.js.map +0 -1
- package/dist/parsers/__tests__/cross-flavor.test.d.ts +0 -2
- package/dist/parsers/__tests__/cross-flavor.test.d.ts.map +0 -1
- package/dist/parsers/__tests__/cross-flavor.test.js +0 -56
- package/dist/parsers/__tests__/cross-flavor.test.js.map +0 -1
- package/dist/parsers/__tests__/datatransform-structured.test.d.ts +0 -2
- package/dist/parsers/__tests__/datatransform-structured.test.d.ts.map +0 -1
- package/dist/parsers/__tests__/datatransform-structured.test.js +0 -147
- package/dist/parsers/__tests__/datatransform-structured.test.js.map +0 -1
- package/dist/parsers/__tests__/edge-provenance.test.d.ts +0 -2
- package/dist/parsers/__tests__/edge-provenance.test.d.ts.map +0 -1
- package/dist/parsers/__tests__/edge-provenance.test.js +0 -47
- package/dist/parsers/__tests__/edge-provenance.test.js.map +0 -1
- package/dist/parsers/__tests__/flow.golden.test.d.ts +0 -2
- package/dist/parsers/__tests__/flow.golden.test.d.ts.map +0 -1
- package/dist/parsers/__tests__/flow.golden.test.js +0 -17
- package/dist/parsers/__tests__/flow.golden.test.js.map +0 -1
- package/dist/parsers/__tests__/integration.golden.test.d.ts +0 -2
- package/dist/parsers/__tests__/integration.golden.test.d.ts.map +0 -1
- package/dist/parsers/__tests__/integration.golden.test.js +0 -31
- package/dist/parsers/__tests__/integration.golden.test.js.map +0 -1
- package/dist/parsers/__tests__/long-tail.golden.test.d.ts +0 -2
- package/dist/parsers/__tests__/long-tail.golden.test.d.ts.map +0 -1
- package/dist/parsers/__tests__/long-tail.golden.test.js +0 -115
- package/dist/parsers/__tests__/long-tail.golden.test.js.map +0 -1
- package/dist/parsers/__tests__/lwc-bindings.test.d.ts +0 -2
- package/dist/parsers/__tests__/lwc-bindings.test.d.ts.map +0 -1
- package/dist/parsers/__tests__/lwc-bindings.test.js +0 -149
- package/dist/parsers/__tests__/lwc-bindings.test.js.map +0 -1
- package/dist/parsers/__tests__/lwc.golden.test.d.ts +0 -2
- package/dist/parsers/__tests__/lwc.golden.test.d.ts.map +0 -1
- package/dist/parsers/__tests__/lwc.golden.test.js +0 -16
- package/dist/parsers/__tests__/lwc.golden.test.js.map +0 -1
- package/dist/parsers/__tests__/mcd-gap-fills.test.d.ts +0 -2
- package/dist/parsers/__tests__/mcd-gap-fills.test.d.ts.map +0 -1
- package/dist/parsers/__tests__/mcd-gap-fills.test.js +0 -75
- package/dist/parsers/__tests__/mcd-gap-fills.test.js.map +0 -1
- package/dist/parsers/__tests__/object-inline-fields.test.d.ts +0 -2
- package/dist/parsers/__tests__/object-inline-fields.test.d.ts.map +0 -1
- package/dist/parsers/__tests__/object-inline-fields.test.js +0 -115
- package/dist/parsers/__tests__/object-inline-fields.test.js.map +0 -1
- package/dist/parsers/__tests__/object.golden.test.d.ts +0 -2
- package/dist/parsers/__tests__/object.golden.test.d.ts.map +0 -1
- package/dist/parsers/__tests__/object.golden.test.js +0 -33
- package/dist/parsers/__tests__/object.golden.test.js.map +0 -1
- package/dist/parsers/__tests__/omnistudio-overlap.test.d.ts +0 -2
- package/dist/parsers/__tests__/omnistudio-overlap.test.d.ts.map +0 -1
- package/dist/parsers/__tests__/omnistudio-overlap.test.js +0 -163
- package/dist/parsers/__tests__/omnistudio-overlap.test.js.map +0 -1
- package/dist/parsers/__tests__/omnistudio.golden.test.d.ts +0 -2
- package/dist/parsers/__tests__/omnistudio.golden.test.d.ts.map +0 -1
- package/dist/parsers/__tests__/omnistudio.golden.test.js +0 -53
- package/dist/parsers/__tests__/omnistudio.golden.test.js.map +0 -1
- package/dist/parsers/__tests__/reflection-walker.test.d.ts +0 -2
- package/dist/parsers/__tests__/reflection-walker.test.d.ts.map +0 -1
- package/dist/parsers/__tests__/reflection-walker.test.js +0 -162
- package/dist/parsers/__tests__/reflection-walker.test.js.map +0 -1
- package/dist/parsers/__tests__/registry.test.d.ts +0 -2
- package/dist/parsers/__tests__/registry.test.d.ts.map +0 -1
- package/dist/parsers/__tests__/registry.test.js +0 -23
- package/dist/parsers/__tests__/registry.test.js.map +0 -1
- package/dist/parsers/__tests__/security.golden.test.d.ts +0 -2
- package/dist/parsers/__tests__/security.golden.test.d.ts.map +0 -1
- package/dist/parsers/__tests__/security.golden.test.js +0 -31
- package/dist/parsers/__tests__/security.golden.test.js.map +0 -1
- package/dist/parsers/__tests__/vlocity.golden.test.d.ts +0 -2
- package/dist/parsers/__tests__/vlocity.golden.test.d.ts.map +0 -1
- package/dist/parsers/__tests__/vlocity.golden.test.js +0 -105
- package/dist/parsers/__tests__/vlocity.golden.test.js.map +0 -1
- package/dist/parsers/__tests__/worker-pool.test.d.ts +0 -2
- package/dist/parsers/__tests__/worker-pool.test.d.ts.map +0 -1
- package/dist/parsers/__tests__/worker-pool.test.js +0 -48
- package/dist/parsers/__tests__/worker-pool.test.js.map +0 -1
- package/dist/parsers/apex/__tests__/arity-resolver.test.d.ts +0 -2
- package/dist/parsers/apex/__tests__/arity-resolver.test.d.ts.map +0 -1
- package/dist/parsers/apex/__tests__/arity-resolver.test.js +0 -135
- package/dist/parsers/apex/__tests__/arity-resolver.test.js.map +0 -1
- package/dist/parsers/apex/__tests__/ast-extractor.test.d.ts +0 -2
- package/dist/parsers/apex/__tests__/ast-extractor.test.d.ts.map +0 -1
- package/dist/parsers/apex/__tests__/ast-extractor.test.js +0 -206
- package/dist/parsers/apex/__tests__/ast-extractor.test.js.map +0 -1
- package/dist/parsers/apex/__tests__/empty-body.test.d.ts +0 -2
- package/dist/parsers/apex/__tests__/empty-body.test.d.ts.map +0 -1
- package/dist/parsers/apex/__tests__/empty-body.test.js +0 -40
- package/dist/parsers/apex/__tests__/empty-body.test.js.map +0 -1
- package/dist/parsers/apex/__tests__/is-test-attribute.test.d.ts +0 -2
- package/dist/parsers/apex/__tests__/is-test-attribute.test.d.ts.map +0 -1
- package/dist/parsers/apex/__tests__/is-test-attribute.test.js +0 -56
- package/dist/parsers/apex/__tests__/is-test-attribute.test.js.map +0 -1
- package/dist/parsers/apex/__tests__/regex-arg-count.test.d.ts +0 -2
- package/dist/parsers/apex/__tests__/regex-arg-count.test.d.ts.map +0 -1
- package/dist/parsers/apex/__tests__/regex-arg-count.test.js +0 -82
- package/dist/parsers/apex/__tests__/regex-arg-count.test.js.map +0 -1
- package/dist/parsers/apex/__tests__/regex-inloop.test.d.ts +0 -2
- package/dist/parsers/apex/__tests__/regex-inloop.test.d.ts.map +0 -1
- package/dist/parsers/apex/__tests__/regex-inloop.test.js +0 -70
- package/dist/parsers/apex/__tests__/regex-inloop.test.js.map +0 -1
- package/dist/parsers/flow/__tests__/invocable-resolver.test.d.ts +0 -2
- package/dist/parsers/flow/__tests__/invocable-resolver.test.d.ts.map +0 -1
- package/dist/parsers/flow/__tests__/invocable-resolver.test.js +0 -91
- package/dist/parsers/flow/__tests__/invocable-resolver.test.js.map +0 -1
- package/dist/parsers/rules/__tests__/applies-to.test.d.ts +0 -2
- package/dist/parsers/rules/__tests__/applies-to.test.d.ts.map +0 -1
- package/dist/parsers/rules/__tests__/applies-to.test.js +0 -31
- package/dist/parsers/rules/__tests__/applies-to.test.js.map +0 -1
- package/dist/parsers/rules/__tests__/applies-to.test.ts +0 -40
- package/dist/parsers/rules/__tests__/engine.test.d.ts +0 -2
- package/dist/parsers/rules/__tests__/engine.test.d.ts.map +0 -1
- package/dist/parsers/rules/__tests__/engine.test.js +0 -127
- package/dist/parsers/rules/__tests__/engine.test.js.map +0 -1
- package/dist/parsers/rules/__tests__/engine.test.ts +0 -138
- package/dist/parsers/rules/__tests__/loader.test.d.ts +0 -2
- package/dist/parsers/rules/__tests__/loader.test.d.ts.map +0 -1
- package/dist/parsers/rules/__tests__/loader.test.js +0 -31
- package/dist/parsers/rules/__tests__/loader.test.js.map +0 -1
- package/dist/parsers/rules/__tests__/loader.test.ts +0 -37
- package/dist/parsers/rules/__tests__/schema.test.d.ts +0 -2
- package/dist/parsers/rules/__tests__/schema.test.d.ts.map +0 -1
- package/dist/parsers/rules/__tests__/schema.test.js +0 -33
- package/dist/parsers/rules/__tests__/schema.test.js.map +0 -1
- package/dist/parsers/rules/__tests__/schema.test.ts +0 -37
- package/dist/parsers/rules/__tests__/selectors.test.d.ts +0 -2
- package/dist/parsers/rules/__tests__/selectors.test.d.ts.map +0 -1
- package/dist/parsers/rules/__tests__/selectors.test.js +0 -51
- package/dist/parsers/rules/__tests__/selectors.test.js.map +0 -1
- package/dist/parsers/rules/__tests__/selectors.test.ts +0 -62
- package/dist/render/__tests__/sarif.test.d.ts +0 -2
- package/dist/render/__tests__/sarif.test.d.ts.map +0 -1
- package/dist/render/__tests__/sarif.test.js +0 -126
- package/dist/render/__tests__/sarif.test.js.map +0 -1
- package/dist/render/mermaid/__tests__/mermaid.test.d.ts +0 -2
- package/dist/render/mermaid/__tests__/mermaid.test.d.ts.map +0 -1
- package/dist/render/mermaid/__tests__/mermaid.test.js +0 -74
- package/dist/render/mermaid/__tests__/mermaid.test.js.map +0 -1
- package/dist/storage/__tests__/analysis-tables-migration.test.d.ts +0 -2
- package/dist/storage/__tests__/analysis-tables-migration.test.d.ts.map +0 -1
- package/dist/storage/__tests__/analysis-tables-migration.test.js +0 -44
- package/dist/storage/__tests__/analysis-tables-migration.test.js.map +0 -1
- package/dist/storage/__tests__/graph-store.test.d.ts +0 -2
- package/dist/storage/__tests__/graph-store.test.d.ts.map +0 -1
- package/dist/storage/__tests__/graph-store.test.js +0 -145
- package/dist/storage/__tests__/graph-store.test.js.map +0 -1
- package/dist/storage/__tests__/identifier.test.d.ts +0 -2
- package/dist/storage/__tests__/identifier.test.d.ts.map +0 -1
- package/dist/storage/__tests__/identifier.test.js +0 -35
- package/dist/storage/__tests__/identifier.test.js.map +0 -1
- package/dist/storage/__tests__/load-better-sqlite3.test.d.ts +0 -2
- package/dist/storage/__tests__/load-better-sqlite3.test.d.ts.map +0 -1
- package/dist/storage/__tests__/load-better-sqlite3.test.js +0 -65
- package/dist/storage/__tests__/load-better-sqlite3.test.js.map +0 -1
- package/dist/storage/__tests__/migrations.test.d.ts +0 -2
- package/dist/storage/__tests__/migrations.test.d.ts.map +0 -1
- package/dist/storage/__tests__/migrations.test.js +0 -93
- package/dist/storage/__tests__/migrations.test.js.map +0 -1
- package/dist/storage/__tests__/perf-50k.test.d.ts +0 -2
- package/dist/storage/__tests__/perf-50k.test.d.ts.map +0 -1
- package/dist/storage/__tests__/perf-50k.test.js +0 -67
- package/dist/storage/__tests__/perf-50k.test.js.map +0 -1
- package/dist/storage/__tests__/rename-stability.test.d.ts +0 -2
- package/dist/storage/__tests__/rename-stability.test.d.ts.map +0 -1
- package/dist/storage/__tests__/rename-stability.test.js +0 -135
- package/dist/storage/__tests__/rename-stability.test.js.map +0 -1
- package/dist/storage/__tests__/snapshot-store.test.d.ts +0 -2
- package/dist/storage/__tests__/snapshot-store.test.d.ts.map +0 -1
- package/dist/storage/__tests__/snapshot-store.test.js +0 -117
- package/dist/storage/__tests__/snapshot-store.test.js.map +0 -1
- package/dist/storage/__tests__/snippets.test.d.ts +0 -2
- package/dist/storage/__tests__/snippets.test.d.ts.map +0 -1
- package/dist/storage/__tests__/snippets.test.js +0 -88
- package/dist/storage/__tests__/snippets.test.js.map +0 -1
- package/dist/storage/__tests__/sync-generation.test.d.ts +0 -2
- package/dist/storage/__tests__/sync-generation.test.d.ts.map +0 -1
- package/dist/storage/__tests__/sync-generation.test.js +0 -159
- package/dist/storage/__tests__/sync-generation.test.js.map +0 -1
- package/dist/storage/__tests__/vector-store-load-failure.test.d.ts +0 -2
- package/dist/storage/__tests__/vector-store-load-failure.test.d.ts.map +0 -1
- package/dist/storage/__tests__/vector-store-load-failure.test.js +0 -42
- package/dist/storage/__tests__/vector-store-load-failure.test.js.map +0 -1
- package/dist/storage/__tests__/vector-store.test.d.ts +0 -2
- package/dist/storage/__tests__/vector-store.test.d.ts.map +0 -1
- package/dist/storage/__tests__/vector-store.test.js +0 -87
- package/dist/storage/__tests__/vector-store.test.js.map +0 -1
- package/dist/telemetry/__tests__/event-schema.test.d.ts +0 -2
- package/dist/telemetry/__tests__/event-schema.test.d.ts.map +0 -1
- package/dist/telemetry/__tests__/event-schema.test.js +0 -56
- package/dist/telemetry/__tests__/event-schema.test.js.map +0 -1
- package/dist/telemetry/__tests__/machine-id.test.d.ts +0 -2
- package/dist/telemetry/__tests__/machine-id.test.d.ts.map +0 -1
- package/dist/telemetry/__tests__/machine-id.test.js +0 -33
- package/dist/telemetry/__tests__/machine-id.test.js.map +0 -1
- package/dist/telemetry/__tests__/pipeline.test.d.ts +0 -2
- package/dist/telemetry/__tests__/pipeline.test.d.ts.map +0 -1
- package/dist/telemetry/__tests__/pipeline.test.js +0 -68
- package/dist/telemetry/__tests__/pipeline.test.js.map +0 -1
- package/dist/telemetry/__tests__/sanitizer.test.d.ts +0 -2
- package/dist/telemetry/__tests__/sanitizer.test.d.ts.map +0 -1
- package/dist/telemetry/__tests__/sanitizer.test.js +0 -143
- package/dist/telemetry/__tests__/sanitizer.test.js.map +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isOrgRejection, withRetry } from "./retry.js";
|
|
1
2
|
export const VLOCITY_NAMESPACE_CANDIDATES = [
|
|
2
3
|
"vlocity_cmt",
|
|
3
4
|
"vlocity_ins",
|
|
@@ -45,16 +46,55 @@ async function safeToolingQuery(conn, soql) {
|
|
|
45
46
|
return null;
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
|
-
|
|
49
|
+
/** The describe failed because the object is not in this org (or the user
|
|
50
|
+
* cannot see it) — a definite "no", not a transient failure. */
|
|
51
|
+
function isAbsent(e) {
|
|
52
|
+
if (isOrgRejection(e))
|
|
53
|
+
return true;
|
|
54
|
+
const msg = e instanceof Error
|
|
55
|
+
? `${e.errorCode ?? ""} ${e.message}`
|
|
56
|
+
: String(e);
|
|
57
|
+
return /NOT_FOUND|does not exist|no such/i.test(msg);
|
|
58
|
+
}
|
|
59
|
+
/** Retries for a transient describe failure (backoff per retry.ts). */
|
|
60
|
+
const PROBE_RETRIES = 2;
|
|
61
|
+
/**
|
|
62
|
+
* Probe whether `name` is describable. Absence → false. Any other failure
|
|
63
|
+
* (timeout, reset, 5xx) is retried; if it still fails the probe is recorded
|
|
64
|
+
* in `errors` (and reported false). Previously every error mapped to false,
|
|
65
|
+
* so a probe timeout silently removed the whole vlocity / omnistudio source.
|
|
66
|
+
*/
|
|
67
|
+
async function describeExists(conn, name, useTooling, source, errors) {
|
|
68
|
+
const root = useTooling ? conn.tooling : conn;
|
|
49
69
|
try {
|
|
50
|
-
|
|
51
|
-
|
|
70
|
+
await withRetry(async () => {
|
|
71
|
+
try {
|
|
72
|
+
await withCapsTimeout(root.sobject(name).describe(), `describe ${name}`);
|
|
73
|
+
}
|
|
74
|
+
catch (e) {
|
|
75
|
+
// Absence is an answer, not a failure: stop retrying.
|
|
76
|
+
if (isAbsent(e))
|
|
77
|
+
throw new AbsentError();
|
|
78
|
+
throw e;
|
|
79
|
+
}
|
|
80
|
+
}, { retries: PROBE_RETRIES });
|
|
52
81
|
return true;
|
|
53
82
|
}
|
|
54
|
-
catch {
|
|
83
|
+
catch (e) {
|
|
84
|
+
if (e instanceof AbsentError)
|
|
85
|
+
return false;
|
|
86
|
+
errors.push({ probe: name, source, error: e instanceof Error ? e.message : String(e) });
|
|
55
87
|
return false;
|
|
56
88
|
}
|
|
57
89
|
}
|
|
90
|
+
/** Internal marker: the probed object does not exist. Classified as an org
|
|
91
|
+
* rejection (INVALID_TYPE in the message) so withRetry does not retry it. */
|
|
92
|
+
class AbsentError extends Error {
|
|
93
|
+
constructor() {
|
|
94
|
+
super("INVALID_TYPE: probed object absent");
|
|
95
|
+
this.name = "AbsentError";
|
|
96
|
+
}
|
|
97
|
+
}
|
|
58
98
|
/** Probe a Salesforce org for installed packages, features, and source-tracking support. */
|
|
59
99
|
export async function probeCapabilities(conn) {
|
|
60
100
|
// Organization metadata
|
|
@@ -68,13 +108,17 @@ export async function probeCapabilities(conn) {
|
|
|
68
108
|
namespaces.push(r.NamespacePrefix);
|
|
69
109
|
}
|
|
70
110
|
}
|
|
71
|
-
const
|
|
111
|
+
const probeErrors = [];
|
|
112
|
+
const vlocityProbes = await Promise.all(VLOCITY_NAMESPACE_CANDIDATES.map((ns) => describeExists(conn, `${ns}__DRBundle__c`, false, "vlocity", probeErrors)));
|
|
72
113
|
const vlocityNamespaces = VLOCITY_NAMESPACE_CANDIDATES.filter((_ns, i) => vlocityProbes[i]);
|
|
73
114
|
const [omnistudioOncore, agentforce, experienceCloud, sourceTracking] = await Promise.all([
|
|
74
|
-
describeExists(conn, "OmniProcess"),
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
115
|
+
describeExists(conn, "OmniProcess", false, "omnistudio", probeErrors),
|
|
116
|
+
// These gate no bulk-retrieve source (sourceTracking only picks
|
|
117
|
+
// incremental vs full; false → full, the safe direction), but their
|
|
118
|
+
// failures are still reported.
|
|
119
|
+
describeExists(conn, "GenAiPlanner", true, null, probeErrors),
|
|
120
|
+
describeExists(conn, "Network", false, null, probeErrors),
|
|
121
|
+
describeExists(conn, "SourceMember", true, null, probeErrors),
|
|
78
122
|
]);
|
|
79
123
|
return {
|
|
80
124
|
detectedNamespaces: namespaces,
|
|
@@ -85,6 +129,7 @@ export async function probeCapabilities(conn) {
|
|
|
85
129
|
agentforce,
|
|
86
130
|
experienceCloud,
|
|
87
131
|
sourceTracking,
|
|
132
|
+
...(probeErrors.length > 0 ? { probeErrors } : {}),
|
|
88
133
|
};
|
|
89
134
|
}
|
|
90
135
|
//# sourceMappingURL=capabilities.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../../src/extractors/live-org/capabilities.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,aAAa;IACb,aAAa;IACb,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,sEAAsE;IACtE,uEAAuE;IACvE,oEAAoE;IACpE,0DAA0D;IAC1D,gEAAgE;IAChE,YAAY;CACJ,CAAC;
|
|
1
|
+
{"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../../src/extractors/live-org/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AA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E,KAAK,EAAE,SAAS,EAAE,WAAW,CAAC,CAC1E,CACF,CAAC;IACF,MAAM,iBAAiB,GAAa,4BAA4B,CAAC,MAAM,CACrE,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,CAC7B,CAAC;IAEF,MAAM,CAAC,gBAAgB,EAAE,UAAU,EAAE,eAAe,EAAE,cAAc,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QACxF,cAAc,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,YAAY,EAAE,WAAW,CAAC;QACrE,gEAAgE;QAChE,oEAAoE;QACpE,+BAA+B;QAC/B,cAAc,CAAC,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,CAAC;QAC7D,cAAc,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,CAAC;QACzD,cAAc,CAAC,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,CAAC;KAC9D,CAAC,CAAC;IAEH,OAAO;QACL,kBAAkB,EAAE,UAAU;QAC9B,iBAAiB;QACjB,aAAa,EAAE,iBAAiB,CAAC,MAAM,GAAG,CAAC;QAC3C,UAAU,EAAE,iBAAiB,CAAC,QAAQ,CAAC,aAAa,CAAC;QACrD,gBAAgB;QAChB,UAAU;QACV,eAAe;QACf,cAAc;QACd,GAAG,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACnD,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import type { RawMember } from "../../interfaces/metadata-source.js";
|
|
2
|
-
|
|
3
|
-
/**
|
|
2
|
+
import { type RetryOptions } from "../retry.js";
|
|
3
|
+
/** Options for {@link iterApex} (page-fetch retry tuning; tests pass
|
|
4
|
+
* `retryBackoffMs: 0`). */
|
|
5
|
+
export type IterApexOptions = RetryOptions;
|
|
6
|
+
export declare function iterApex(conn: any, options?: IterApexOptions): AsyncIterable<RawMember>;
|
|
7
|
+
/**
|
|
8
|
+
* Re-fetch a single Apex member by name. Not called by the live ingest today
|
|
9
|
+
* (incremental mode does not re-fetch content); kept on the public surface
|
|
10
|
+
* (`iterOneApex`) and built with the same envelope as {@link iterApex} —
|
|
11
|
+
* managed-body stub, metaXml and `shadowsManaged` — so adopting it cannot
|
|
12
|
+
* flip a node's hash or drop the attribute (review M2).
|
|
13
|
+
*/
|
|
4
14
|
export declare function iterOne(conn: any, name: string): Promise<RawMember | null>;
|
|
5
15
|
//# sourceMappingURL=apex.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apex.d.ts","sourceRoot":"","sources":["../../../../src/extractors/live-org/extractors/apex.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"apex.d.ts","sourceRoot":"","sources":["../../../../src/extractors/live-org/extractors/apex.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAErE,OAAO,EAAE,KAAK,YAAY,EAAgC,MAAM,aAAa,CAAC;AAuH9E;4BAC4B;AAC5B,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC;AAqB3C,wBAAuB,QAAQ,CAC7B,IAAI,EAAE,GAAG,EACT,OAAO,GAAE,eAAoB,GAC5B,aAAa,CAAC,SAAS,CAAC,CA4F1B;AAED;;;;;;GAMG;AACH,wBAAsB,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CA4BhF"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { METADATA_CATEGORY } from "../../../domain/index.js";
|
|
2
2
|
import { scheduleQuery, soqlWithTimeout } from "../rate-limit.js";
|
|
3
|
+
import { drainSoqlPages, querySoqlAll } from "../retry.js";
|
|
3
4
|
const APEX_CLASS_SOQL = "SELECT Id, Name, Body, NamespacePrefix, LastModifiedDate, ApiVersion, Status FROM ApexClass";
|
|
5
|
+
/** Light listing (no Body) used to find local/managed name collisions before
|
|
6
|
+
* the body drain starts. */
|
|
7
|
+
const APEX_CLASS_NAMES_SOQL = "SELECT Name, NamespacePrefix FROM ApexClass";
|
|
4
8
|
const APEX_TRIGGER_SOQL = "SELECT Id, Name, Body, NamespacePrefix, LastModifiedDate, ApiVersion, Status, TableEnumOrId FROM ApexTrigger";
|
|
5
9
|
/**
|
|
6
10
|
* Build the minimal `<*MetaXml>` envelope the parser would otherwise get
|
|
@@ -9,19 +13,71 @@ const APEX_TRIGGER_SOQL = "SELECT Id, Name, Body, NamespacePrefix, LastModifiedD
|
|
|
9
13
|
* channel — without this, live-ingested Apex nodes always had
|
|
10
14
|
* apiVersion: null, while filesystem-ingested ones had the real value.
|
|
11
15
|
*/
|
|
12
|
-
function buildApexMetaXml(outerTag, row) {
|
|
16
|
+
function buildApexMetaXml(outerTag, row, shadowsManaged = []) {
|
|
13
17
|
const av = row.ApiVersion;
|
|
14
18
|
const status = row.Status;
|
|
15
|
-
if (av == null && !status)
|
|
19
|
+
if (av == null && !status && shadowsManaged.length === 0)
|
|
16
20
|
return undefined;
|
|
17
21
|
const parts = [`<?xml version="1.0" encoding="UTF-8"?>`, `<${outerTag}>`];
|
|
18
22
|
if (av != null)
|
|
19
23
|
parts.push(` <apiVersion>${String(av)}</apiVersion>`);
|
|
20
24
|
if (status)
|
|
21
25
|
parts.push(` <status>${status}</status>`);
|
|
26
|
+
// sfgraph extension (not a Salesforce field): managed-package namespaces
|
|
27
|
+
// whose same-named class this local class shadows in the graph.
|
|
28
|
+
for (const ns of shadowsManaged)
|
|
29
|
+
parts.push(` <shadowsManaged>${ns}</shadowsManaged>`);
|
|
22
30
|
parts.push(`</${outerTag}>`);
|
|
23
31
|
return parts.join("\n");
|
|
24
32
|
}
|
|
33
|
+
function indexApexNames(rows) {
|
|
34
|
+
const idx = { local: new Set(), managed: new Map() };
|
|
35
|
+
for (const r of rows) {
|
|
36
|
+
if (!r?.Name)
|
|
37
|
+
continue;
|
|
38
|
+
const key = r.Name.toLowerCase();
|
|
39
|
+
if (!r.NamespacePrefix)
|
|
40
|
+
idx.local.add(key);
|
|
41
|
+
else {
|
|
42
|
+
const set = idx.managed.get(key) ?? new Set();
|
|
43
|
+
set.add(r.NamespacePrefix);
|
|
44
|
+
idx.managed.set(key, set);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return idx;
|
|
48
|
+
}
|
|
49
|
+
/** Body to emit: managed-package bodies are redacted by the org, so they are
|
|
50
|
+
* stubbed to "" unless SFGRAPH_INCLUDE_MANAGED=1. */
|
|
51
|
+
function includeManagedBodies() {
|
|
52
|
+
return process.env.SFGRAPH_INCLUDE_MANAGED === "1";
|
|
53
|
+
}
|
|
54
|
+
function stubBody(r, includeManaged) {
|
|
55
|
+
return r.NamespacePrefix && !includeManaged ? "" : (r.Body ?? "");
|
|
56
|
+
}
|
|
57
|
+
/** The RawMember shape for an ApexClass / ApexTrigger row. Shared by
|
|
58
|
+
* {@link iterApex} and {@link iterOne} so both produce byte-identical
|
|
59
|
+
* content (and therefore the same node hash). */
|
|
60
|
+
function apexMember(type, r, includeManaged, shadows = []) {
|
|
61
|
+
return {
|
|
62
|
+
ref: {
|
|
63
|
+
category: type === "ApexClass" ? METADATA_CATEGORY.APEX_CLASS : METADATA_CATEGORY.APEX_TRIGGER,
|
|
64
|
+
memberType: type,
|
|
65
|
+
memberName: r.Name,
|
|
66
|
+
lastModifiedAt: r.LastModifiedDate ?? null,
|
|
67
|
+
sourceUri: `sf://tooling/${type}/${r.Name}`,
|
|
68
|
+
namespace: r.NamespacePrefix ?? null,
|
|
69
|
+
},
|
|
70
|
+
// JSON envelope so adaptParserInput can forward metaXml (containing
|
|
71
|
+
// apiVersion + Status) alongside the body. Plain-body content from
|
|
72
|
+
// the filesystem path still parses correctly via the adapter's
|
|
73
|
+
// shape detection.
|
|
74
|
+
content: JSON.stringify({
|
|
75
|
+
body: stubBody(r, includeManaged),
|
|
76
|
+
metaXml: buildApexMetaXml(type, r, shadows),
|
|
77
|
+
...(r.NamespacePrefix && !includeManaged ? { managed: true } : {}),
|
|
78
|
+
}),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
25
81
|
/**
|
|
26
82
|
* Drain a Tooling SOQL query across ALL pages. `conn.tooling.query` returns at
|
|
27
83
|
* most one page (200 rows); without following `nextRecordsUrl` via `queryMore`
|
|
@@ -29,102 +85,117 @@ function buildApexMetaXml(outerTag, row) {
|
|
|
29
85
|
* (7k+ classes) that dropped ~97% of the source, and that first page is
|
|
30
86
|
* dominated by managed-package classes whose body is stubbed, so almost
|
|
31
87
|
* nothing parsed. Streams rows so we never hold the whole (body-heavy) result
|
|
32
|
-
* set in memory at once.
|
|
88
|
+
* set in memory at once. Each page fetch is re-tried with backoff; a page that
|
|
89
|
+
* still fails throws "drain truncated after N rows" (see retry.ts).
|
|
33
90
|
*/
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
while (result) {
|
|
37
|
-
for (const r of (result.records ?? []))
|
|
38
|
-
yield r;
|
|
39
|
-
if (result.done || !result.nextRecordsUrl || typeof conn.tooling.queryMore !== "function") {
|
|
40
|
-
break;
|
|
41
|
-
}
|
|
42
|
-
result = await scheduleQuery(() => soqlWithTimeout(conn.tooling.queryMore(result.nextRecordsUrl), `${label} more`));
|
|
43
|
-
}
|
|
91
|
+
function drainToolingQuery(conn, soql, label, opts) {
|
|
92
|
+
return drainSoqlPages(conn.tooling, soql, label, scheduleQuery, opts);
|
|
44
93
|
}
|
|
45
|
-
export async function* iterApex(conn) {
|
|
94
|
+
export async function* iterApex(conn, options = {}) {
|
|
95
|
+
const drainOpts = options;
|
|
46
96
|
// For managed-package Apex, Body comes back redacted (empty / "(hidden)") —
|
|
47
97
|
// parsing it produces nothing useful. We still emit the node (so calling
|
|
48
98
|
// code's edges resolve to a real target) with an empty body, which the
|
|
49
99
|
// parser turns into a bare node. Set SFGRAPH_INCLUDE_MANAGED=1 to keep the
|
|
50
100
|
// redacted Body instead.
|
|
51
|
-
const includeManaged =
|
|
52
|
-
|
|
53
|
-
//
|
|
54
|
-
//
|
|
55
|
-
//
|
|
101
|
+
const includeManaged = includeManagedBodies();
|
|
102
|
+
// Classes and triggers are drained independently: a failure fetching one
|
|
103
|
+
// must not drop the other (an unhandled jsforce rejection also crashes
|
|
104
|
+
// node 24+, hence the per-stream try/catch). But a failure must NOT be
|
|
105
|
+
// swallowed — a partial drain used to log "apex ✓" with skips=0 (large live org:
|
|
106
|
+
// 3,600 of 7,662 classes). The first failure is re-thrown after both
|
|
107
|
+
// streams ran, so the bulk-retrieve failSoft wrapper records an `apex` skip
|
|
108
|
+
// while keeping every row already yielded.
|
|
109
|
+
const failures = [];
|
|
110
|
+
// Local wins over managed (same name => same qname). A light Name /
|
|
111
|
+
// NamespacePrefix listing tells us up front which names collide, so a
|
|
112
|
+
// managed row is dropped whichever order the drain returns the rows in,
|
|
113
|
+
// and the local row carries `shadowsManaged`. If the listing fails, the
|
|
114
|
+
// drain still runs: managed rows are held back until the drain ends and
|
|
115
|
+
// only emitted when no local class of that name was seen, and the
|
|
116
|
+
// listing failure is surfaced with the others.
|
|
117
|
+
let names = null;
|
|
56
118
|
try {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
119
|
+
names = indexApexNames(await querySoqlAll(conn.tooling, APEX_CLASS_NAMES_SOQL, "tooling ApexClass names", scheduleQuery, drainOpts));
|
|
120
|
+
}
|
|
121
|
+
catch (e) {
|
|
122
|
+
failures.push(e);
|
|
123
|
+
}
|
|
124
|
+
const classMember = (r, shadows = []) => apexMember("ApexClass", r, includeManaged, shadows);
|
|
125
|
+
const seenLocal = new Set();
|
|
126
|
+
const heldManaged = [];
|
|
127
|
+
let classDrainComplete = false;
|
|
128
|
+
try {
|
|
129
|
+
for await (const r of drainToolingQuery(conn, APEX_CLASS_SOQL, "tooling ApexClass", drainOpts)) {
|
|
130
|
+
const key = r.Name.toLowerCase();
|
|
131
|
+
if (r.NamespacePrefix) {
|
|
132
|
+
if (names?.local.has(key) || seenLocal.has(key))
|
|
133
|
+
continue; // shadowed
|
|
134
|
+
if (!names)
|
|
135
|
+
heldManaged.push(r);
|
|
136
|
+
else
|
|
137
|
+
yield classMember(r);
|
|
138
|
+
continue;
|
|
139
|
+
}
|
|
140
|
+
seenLocal.add(key);
|
|
141
|
+
yield classMember(r, [...(names?.managed.get(key) ?? [])].sort());
|
|
78
142
|
}
|
|
143
|
+
classDrainComplete = true;
|
|
79
144
|
}
|
|
80
|
-
catch {
|
|
81
|
-
|
|
145
|
+
catch (e) {
|
|
146
|
+
failures.push(e);
|
|
147
|
+
}
|
|
148
|
+
// Held managed rows (listing failed) are only safe to emit once the body
|
|
149
|
+
// drain finished: after a truncated drain a local class of the same name
|
|
150
|
+
// may sit on an unfetched page, and the managed stub would overwrite it
|
|
151
|
+
// (review M1). The failure is re-thrown below, so the `apex` skip makes
|
|
152
|
+
// `--retry-skipped` fetch them.
|
|
153
|
+
if (classDrainComplete) {
|
|
154
|
+
for (const r of heldManaged) {
|
|
155
|
+
if (!seenLocal.has(r.Name.toLowerCase()))
|
|
156
|
+
yield classMember(r);
|
|
157
|
+
}
|
|
82
158
|
}
|
|
83
159
|
try {
|
|
84
|
-
for await (const r of drainToolingQuery(conn, APEX_TRIGGER_SOQL, "tooling ApexTrigger")) {
|
|
85
|
-
|
|
86
|
-
yield {
|
|
87
|
-
ref: {
|
|
88
|
-
category: METADATA_CATEGORY.APEX_TRIGGER,
|
|
89
|
-
memberType: "ApexTrigger",
|
|
90
|
-
memberName: r.Name,
|
|
91
|
-
lastModifiedAt: r.LastModifiedDate ?? null,
|
|
92
|
-
sourceUri: `sf://tooling/ApexTrigger/${r.Name}`,
|
|
93
|
-
namespace: r.NamespacePrefix ?? null,
|
|
94
|
-
},
|
|
95
|
-
content: JSON.stringify({
|
|
96
|
-
body: stubBody(r),
|
|
97
|
-
metaXml,
|
|
98
|
-
...(r.NamespacePrefix && !includeManaged ? { managed: true } : {}),
|
|
99
|
-
}),
|
|
100
|
-
};
|
|
160
|
+
for await (const r of drainToolingQuery(conn, APEX_TRIGGER_SOQL, "tooling ApexTrigger", drainOpts)) {
|
|
161
|
+
yield apexMember("ApexTrigger", r, includeManaged);
|
|
101
162
|
}
|
|
102
163
|
}
|
|
103
|
-
catch {
|
|
104
|
-
|
|
164
|
+
catch (e) {
|
|
165
|
+
failures.push(e);
|
|
166
|
+
}
|
|
167
|
+
if (failures.length > 0) {
|
|
168
|
+
throw new Error(failures.map((f) => f.message).join("; "), { cause: failures[0] });
|
|
105
169
|
}
|
|
106
170
|
}
|
|
107
|
-
/**
|
|
171
|
+
/**
|
|
172
|
+
* Re-fetch a single Apex member by name. Not called by the live ingest today
|
|
173
|
+
* (incremental mode does not re-fetch content); kept on the public surface
|
|
174
|
+
* (`iterOneApex`) and built with the same envelope as {@link iterApex} —
|
|
175
|
+
* managed-body stub, metaXml and `shadowsManaged` — so adopting it cannot
|
|
176
|
+
* flip a node's hash or drop the attribute (review M2).
|
|
177
|
+
*/
|
|
108
178
|
export async function iterOne(conn, name) {
|
|
109
|
-
const escaped = name.replace(/'/g, "\\'");
|
|
110
|
-
const
|
|
179
|
+
const escaped = name.replace(/\\/g, "\\\\").replace(/'/g, "\\'");
|
|
180
|
+
const includeManaged = includeManagedBodies();
|
|
181
|
+
const fetchRows = async (soql, type) => {
|
|
111
182
|
const res = (await scheduleQuery(() => soqlWithTimeout(conn.tooling.query(soql), `tooling ${type} ${name}`)));
|
|
112
|
-
|
|
113
|
-
if (!r)
|
|
114
|
-
return null;
|
|
115
|
-
return {
|
|
116
|
-
ref: {
|
|
117
|
-
category: type === "ApexClass" ? METADATA_CATEGORY.APEX_CLASS : METADATA_CATEGORY.APEX_TRIGGER,
|
|
118
|
-
memberType: type,
|
|
119
|
-
memberName: r.Name,
|
|
120
|
-
lastModifiedAt: r.LastModifiedDate ?? null,
|
|
121
|
-
sourceUri: `sf://tooling/${type}/${r.Name}`,
|
|
122
|
-
namespace: r.NamespacePrefix ?? null,
|
|
123
|
-
},
|
|
124
|
-
content: r.Body ?? "",
|
|
125
|
-
};
|
|
183
|
+
return res?.records ?? [];
|
|
126
184
|
};
|
|
127
|
-
|
|
128
|
-
|
|
185
|
+
// Every class with this name (local + managed namespaces; at most a
|
|
186
|
+
// handful). NULLS FIRST puts the local class first; the pick below does
|
|
187
|
+
// not rely on the ordering.
|
|
188
|
+
const classRows = await fetchRows(`${APEX_CLASS_SOQL} WHERE Name = '${escaped}' ORDER BY NamespacePrefix NULLS FIRST`, "ApexClass");
|
|
189
|
+
const local = classRows.find((r) => !r.NamespacePrefix);
|
|
190
|
+
if (local) {
|
|
191
|
+
const shadows = [
|
|
192
|
+
...new Set(classRows.map((r) => r.NamespacePrefix).filter((ns) => !!ns)),
|
|
193
|
+
].sort();
|
|
194
|
+
return apexMember("ApexClass", local, includeManaged, shadows);
|
|
195
|
+
}
|
|
196
|
+
if (classRows[0])
|
|
197
|
+
return apexMember("ApexClass", classRows[0], includeManaged);
|
|
198
|
+
const trig = (await fetchRows(`${APEX_TRIGGER_SOQL} WHERE Name = '${escaped}' LIMIT 1`, "ApexTrigger"))[0];
|
|
199
|
+
return trig ? apexMember("ApexTrigger", trig, includeManaged) : null;
|
|
129
200
|
}
|
|
130
201
|
//# sourceMappingURL=apex.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apex.js","sourceRoot":"","sources":["../../../../src/extractors/live-org/extractors/apex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"apex.js","sourceRoot":"","sources":["../../../../src/extractors/live-org/extractors/apex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAqB,cAAc,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAgB9E,MAAM,eAAe,GACnB,6FAA6F,CAAC;AAChG;6BAC6B;AAC7B,MAAM,qBAAqB,GAAG,6CAA6C,CAAC;AAC5E,MAAM,iBAAiB,GACrB,8GAA8G,CAAC;AAEjH;;;;;;GAMG;AACH,SAAS,gBAAgB,CACvB,QAAqC,EACrC,GAAoB,EACpB,iBAA2B,EAAE;IAE7B,MAAM,EAAE,GAAG,GAAG,CAAC,UAAU,CAAC;IAC1B,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;IAC1B,IAAI,EAAE,IAAI,IAAI,IAAI,CAAC,MAAM,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IAC3E,MAAM,KAAK,GAAa,CAAC,wCAAwC,EAAE,IAAI,QAAQ,GAAG,CAAC,CAAC;IACpF,IAAI,EAAE,IAAI,IAAI;QAAE,KAAK,CAAC,IAAI,CAAC,iBAAiB,MAAM,CAAC,EAAE,CAAC,eAAe,CAAC,CAAC;IACvE,IAAI,MAAM;QAAE,KAAK,CAAC,IAAI,CAAC,aAAa,MAAM,WAAW,CAAC,CAAC;IACvD,yEAAyE;IACzE,gEAAgE;IAChE,KAAK,MAAM,EAAE,IAAI,cAAc;QAAE,KAAK,CAAC,IAAI,CAAC,qBAAqB,E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E,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IACD,IAAI,SAAS,CAAC,CAAC,CAAC;QAAE,OAAO,UAAU,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC;IAC/E,MAAM,IAAI,GAAG,CACX,MAAM,SAAS,CAAC,GAAG,iBAAiB,kBAAkB,OAAO,WAAW,EAAE,aAAa,CAAC,CACzF,CAAC,CAAC,CAAC,CAAC;IACL,OAAO,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,aAAa,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACvE,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { RawMember } from "../../interfaces/metadata-source.js";
|
|
2
|
-
|
|
2
|
+
import { type RetryOptions } from "../retry.js";
|
|
3
|
+
export declare function iterCustomSettings(conn: any, orgId: string, retryOpts?: RetryOptions): AsyncIterable<RawMember>;
|
|
3
4
|
//# sourceMappingURL=custom-settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-settings.d.ts","sourceRoot":"","sources":["../../../../src/extractors/live-org/extractors/custom-settings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"custom-settings.d.ts","sourceRoot":"","sources":["../../../../src/extractors/live-org/extractors/custom-settings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAErE,OAAO,EAEL,KAAK,YAAY,EAKlB,MAAM,aAAa,CAAC;AAoCrB,wBAAuB,kBAAkB,CACvC,IAAI,EAAE,GAAG,EACT,KAAK,EAAE,MAAM,EACb,SAAS,GAAE,YAAiB,GAC3B,aAAa,CAAC,SAAS,CAAC,CAmE1B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { METADATA_CATEGORY } from "../../../domain/index.js";
|
|
2
2
|
import { scheduleData, scheduleQuery, soqlWithTimeout } from "../rate-limit.js";
|
|
3
|
+
import { isOrgRejection, querySoqlAll, throwIfIncomplete, withRetry, } from "../retry.js";
|
|
3
4
|
const SYS_FIELDS = new Set([
|
|
4
5
|
"Id",
|
|
5
6
|
"attributes",
|
|
@@ -13,29 +14,37 @@ const SYS_FIELDS = new Set([
|
|
|
13
14
|
/** FIELDS(ALL) requires a row bound ≤ 200. Custom settings rarely exceed that
|
|
14
15
|
* except hierarchy settings with a row per profile/user; we cap and note it. */
|
|
15
16
|
const ROW_CAP = 200;
|
|
16
|
-
export async function* iterCustomSettings(conn, orgId) {
|
|
17
|
+
export async function* iterCustomSettings(conn, orgId, retryOpts = {}) {
|
|
17
18
|
let entities = [];
|
|
18
19
|
try {
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
// Drain every page and retry: a truncated discovery silently loses
|
|
21
|
+
// custom settings.
|
|
22
|
+
entities = await querySoqlAll(conn.tooling, "SELECT QualifiedApiName FROM EntityDefinition WHERE IsCustomSetting = true", "tooling EntityDefinition IsCustomSetting", scheduleQuery, retryOpts);
|
|
21
23
|
}
|
|
22
24
|
catch (e) {
|
|
23
25
|
// EntityDefinition unavailable (some scratch orgs) — nothing to do.
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
// Anything else (timeouts, connection loss) must surface as a skip.
|
|
27
|
+
if (isOrgRejection(e))
|
|
28
|
+
return;
|
|
29
|
+
throw e;
|
|
26
30
|
}
|
|
31
|
+
const failures = [];
|
|
27
32
|
for (const ent of entities) {
|
|
28
33
|
const obj = ent.QualifiedApiName;
|
|
29
34
|
if (!obj)
|
|
30
35
|
continue;
|
|
31
36
|
let rows = [];
|
|
32
37
|
try {
|
|
33
|
-
|
|
38
|
+
// LIMIT ROW_CAP (200) fits in one page, so no queryMore needed.
|
|
39
|
+
const res = (await withRetry(() => scheduleData(() => soqlWithTimeout(conn.query(`SELECT FIELDS(ALL) FROM ${obj} LIMIT ${ROW_CAP}`), `data ${obj} (custom-setting rows)`)), retryOpts));
|
|
34
40
|
rows = res?.records ?? [];
|
|
35
41
|
}
|
|
36
|
-
catch {
|
|
37
|
-
//
|
|
38
|
-
//
|
|
42
|
+
catch (e) {
|
|
43
|
+
// Inaccessible / non-queryable objects have no rows to capture; the
|
|
44
|
+
// schema node still exists from the object extractor. Transient
|
|
45
|
+
// failures are recorded and surfaced after the loop.
|
|
46
|
+
if (!isOrgRejection(e))
|
|
47
|
+
failures.push({ name: obj, error: e });
|
|
39
48
|
continue;
|
|
40
49
|
}
|
|
41
50
|
if (rows.length === 0)
|
|
@@ -62,5 +71,6 @@ export async function* iterCustomSettings(conn, orgId) {
|
|
|
62
71
|
content: JSON.stringify({ name: obj, rows: cleaned, rowCount: rows.length }),
|
|
63
72
|
};
|
|
64
73
|
}
|
|
74
|
+
throwIfIncomplete("custom-settings", failures);
|
|
65
75
|
}
|
|
66
76
|
//# sourceMappingURL=custom-settings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-settings.js","sourceRoot":"","sources":["../../../../src/extractors/live-org/extractors/custom-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"custom-settings.js","sourceRoot":"","sources":["../../../../src/extractors/live-org/extractors/custom-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAGL,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,SAAS,GACV,MAAM,aAAa,CAAC;AAqBrB,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC;IAC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from "../retry.js";
|
|
2
3
|
/**
|
|
3
4
|
* Streams Flow metadata reads through a sliding-window. Each batch yields
|
|
4
5
|
* records as soon as it returns instead of waiting for all batches — keeps
|
|
5
6
|
* failSoft's inactivity timer happy on orgs with many flows where the
|
|
6
7
|
* full-collect pattern was breaching the 180s no-yield ceiling.
|
|
7
8
|
*/
|
|
8
|
-
export declare function iterFlow(conn: any): AsyncIterable<RawMember>;
|
|
9
|
+
export declare function iterFlow(conn: any, retryOpts?: RetryOptions): AsyncIterable<RawMember>;
|
|
9
10
|
//# sourceMappingURL=flow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../../../src/extractors/live-org/extractors/flow.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;
|
|
1
|
+
{"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../../../src/extractors/live-org/extractors/flow.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAOrE,OAAO,EAEL,KAAK,YAAY,EAIlB,MAAM,aAAa,CAAC;AAerB;;;;;GAKG;AACH,wBAAuB,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,SAAS,GAAE,YAAiB,GAAG,aAAa,CAAC,SAAS,CAAC,CA4DjG"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { XMLBuilder } from "fast-xml-parser";
|
|
2
2
|
import { METADATA_CATEGORY } from "../../../domain/index.js";
|
|
3
3
|
import { METADATA_LIST_TIMEOUT_MS, readMetadataBatchAdaptive, scheduleMetadata, withTimeout, } from "../rate-limit.js";
|
|
4
|
+
import { catchInto, throwIfIncomplete, withRetry, } from "../retry.js";
|
|
4
5
|
const BATCH = 10;
|
|
5
6
|
const xml = new XMLBuilder({
|
|
6
7
|
ignoreAttributes: false,
|
|
@@ -13,8 +14,15 @@ const xml = new XMLBuilder({
|
|
|
13
14
|
* failSoft's inactivity timer happy on orgs with many flows where the
|
|
14
15
|
* full-collect pattern was breaching the 180s no-yield ceiling.
|
|
15
16
|
*/
|
|
16
|
-
export async function* iterFlow(conn) {
|
|
17
|
-
|
|
17
|
+
export async function* iterFlow(conn, retryOpts = {}) {
|
|
18
|
+
// Flows the adaptive reader gave up on; re-thrown at the end so failSoft
|
|
19
|
+
// records a `flow` skip naming them (previously dropped silently).
|
|
20
|
+
const failures = [];
|
|
21
|
+
const onFailed = (names, error) => {
|
|
22
|
+
for (const name of names)
|
|
23
|
+
failures.push({ name, error });
|
|
24
|
+
};
|
|
25
|
+
const list = (await withRetry(() => scheduleMetadata(() => withTimeout(conn.metadata.list([{ type: "Flow" }]), METADATA_LIST_TIMEOUT_MS, "metadata.list Flow")), retryOpts));
|
|
18
26
|
const items = Array.isArray(list) ? list : [];
|
|
19
27
|
const batches = [];
|
|
20
28
|
for (let i = 0; i < items.length; i += BATCH)
|
|
@@ -29,7 +37,7 @@ export async function* iterFlow(conn) {
|
|
|
29
37
|
const p = (async () => ({
|
|
30
38
|
idx,
|
|
31
39
|
batch,
|
|
32
|
-
records: await readMetadataBatchAdaptive(conn, "Flow", batch),
|
|
40
|
+
records: await readMetadataBatchAdaptive(conn, "Flow", batch, 0, onFailed),
|
|
33
41
|
}))();
|
|
34
42
|
inFlight.set(idx, p);
|
|
35
43
|
};
|
|
@@ -61,5 +69,6 @@ export async function* iterFlow(conn) {
|
|
|
61
69
|
};
|
|
62
70
|
}
|
|
63
71
|
}
|
|
72
|
+
throwIfIncomplete("flow", failures);
|
|
64
73
|
}
|
|
65
74
|
//# sourceMappingURL=flow.js.map
|