@ryanstark24/sfgraph-core 1.1.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/__tests__/cross-org-two-store.test.d.ts +2 -0
- package/dist/analyze/__tests__/cross-org-two-store.test.d.ts.map +1 -0
- package/dist/analyze/__tests__/cross-org-two-store.test.js +68 -0
- package/dist/analyze/__tests__/cross-org-two-store.test.js.map +1 -0
- package/dist/analyze/__tests__/dead-code-confidence.test.d.ts +2 -0
- package/dist/analyze/__tests__/dead-code-confidence.test.d.ts.map +1 -0
- package/dist/analyze/__tests__/dead-code-confidence.test.js +66 -0
- package/dist/analyze/__tests__/dead-code-confidence.test.js.map +1 -0
- package/dist/analyze/__tests__/deployment-manifest.test.d.ts +2 -0
- package/dist/analyze/__tests__/deployment-manifest.test.d.ts.map +1 -0
- package/dist/analyze/__tests__/deployment-manifest.test.js +66 -0
- package/dist/analyze/__tests__/deployment-manifest.test.js.map +1 -0
- package/dist/analyze/__tests__/governor-risks-detection.test.d.ts +2 -0
- package/dist/analyze/__tests__/governor-risks-detection.test.d.ts.map +1 -0
- package/dist/analyze/__tests__/governor-risks-detection.test.js +70 -0
- package/dist/analyze/__tests__/governor-risks-detection.test.js.map +1 -0
- package/dist/analyze/__tests__/populate.test.d.ts +2 -0
- package/dist/analyze/__tests__/populate.test.d.ts.map +1 -0
- package/dist/analyze/__tests__/populate.test.js +129 -0
- package/dist/analyze/__tests__/populate.test.js.map +1 -0
- package/dist/analyze/__tests__/traversal-caps.test.d.ts +2 -0
- package/dist/analyze/__tests__/traversal-caps.test.d.ts.map +1 -0
- package/dist/analyze/__tests__/traversal-caps.test.js +129 -0
- package/dist/analyze/__tests__/traversal-caps.test.js.map +1 -0
- package/dist/analyze/__tests__/wip-impact.test.d.ts +2 -0
- package/dist/analyze/__tests__/wip-impact.test.d.ts.map +1 -0
- package/dist/analyze/__tests__/wip-impact.test.js +134 -0
- package/dist/analyze/__tests__/wip-impact.test.js.map +1 -0
- package/dist/analyze/cross-org.d.ts +42 -0
- package/dist/analyze/cross-org.d.ts.map +1 -0
- package/dist/analyze/cross-org.js +64 -0
- package/dist/analyze/cross-org.js.map +1 -0
- package/dist/analyze/dead-code.d.ts +8 -0
- package/dist/analyze/dead-code.d.ts.map +1 -0
- package/dist/analyze/dead-code.js +21 -0
- package/dist/analyze/dead-code.js.map +1 -0
- package/dist/analyze/dependencies.d.ts +5 -0
- package/dist/analyze/dependencies.d.ts.map +1 -0
- package/dist/analyze/dependencies.js +40 -0
- package/dist/analyze/dependencies.js.map +1 -0
- package/dist/analyze/dependents.d.ts +19 -0
- package/dist/analyze/dependents.d.ts.map +1 -0
- package/dist/analyze/dependents.js +47 -0
- package/dist/analyze/dependents.js.map +1 -0
- package/dist/analyze/deployment-manifest/generate.d.ts +22 -0
- package/dist/analyze/deployment-manifest/generate.d.ts.map +1 -0
- package/dist/analyze/deployment-manifest/generate.js +91 -0
- package/dist/analyze/deployment-manifest/generate.js.map +1 -0
- package/dist/analyze/deployment-manifest/member-name-formatters.d.ts +8 -0
- package/dist/analyze/deployment-manifest/member-name-formatters.d.ts.map +1 -0
- package/dist/analyze/deployment-manifest/member-name-formatters.js +57 -0
- package/dist/analyze/deployment-manifest/member-name-formatters.js.map +1 -0
- package/dist/analyze/deployment-manifest/member-types.d.ts +6 -0
- package/dist/analyze/deployment-manifest/member-types.d.ts.map +1 -0
- package/dist/analyze/deployment-manifest/member-types.js +47 -0
- package/dist/analyze/deployment-manifest/member-types.js.map +1 -0
- package/dist/analyze/freshness.d.ts +9 -0
- package/dist/analyze/freshness.d.ts.map +1 -0
- package/dist/analyze/freshness.js +31 -0
- package/dist/analyze/freshness.js.map +1 -0
- package/dist/analyze/git-diff.d.ts +6 -0
- package/dist/analyze/git-diff.d.ts.map +1 -0
- package/dist/analyze/git-diff.js +38 -0
- package/dist/analyze/git-diff.js.map +1 -0
- package/dist/analyze/governor.d.ts +14 -0
- package/dist/analyze/governor.d.ts.map +1 -0
- package/dist/analyze/governor.js +28 -0
- package/dist/analyze/governor.js.map +1 -0
- package/dist/analyze/index.d.ts +14 -0
- package/dist/analyze/index.d.ts.map +1 -0
- package/dist/analyze/index.js +14 -0
- package/dist/analyze/index.js.map +1 -0
- package/dist/analyze/path-to-qname.d.ts +3 -0
- package/dist/analyze/path-to-qname.d.ts.map +1 -0
- package/dist/analyze/path-to-qname.js +32 -0
- package/dist/analyze/path-to-qname.js.map +1 -0
- package/dist/analyze/populate.d.ts +15 -0
- package/dist/analyze/populate.d.ts.map +1 -0
- package/dist/analyze/populate.js +188 -0
- package/dist/analyze/populate.js.map +1 -0
- package/dist/analyze/security.d.ts +25 -0
- package/dist/analyze/security.d.ts.map +1 -0
- package/dist/analyze/security.js +70 -0
- package/dist/analyze/security.js.map +1 -0
- package/dist/analyze/test-coverage.d.ts +6 -0
- package/dist/analyze/test-coverage.d.ts.map +1 -0
- package/dist/analyze/test-coverage.js +15 -0
- package/dist/analyze/test-coverage.js.map +1 -0
- package/dist/analyze/wip-impact.d.ts +30 -0
- package/dist/analyze/wip-impact.d.ts.map +1 -0
- package/dist/analyze/wip-impact.js +314 -0
- package/dist/analyze/wip-impact.js.map +1 -0
- package/dist/domain/edge-fact.d.ts +12 -0
- package/dist/domain/edge-fact.d.ts.map +1 -0
- package/dist/domain/edge-fact.js +2 -0
- package/dist/domain/edge-fact.js.map +1 -0
- package/dist/domain/index.d.ts +7 -0
- package/dist/domain/index.d.ts.map +1 -0
- package/dist/domain/index.js +7 -0
- package/dist/domain/index.js.map +1 -0
- package/dist/domain/metadata-category.d.ts +57 -0
- package/dist/domain/metadata-category.d.ts.map +1 -0
- package/dist/domain/metadata-category.js +57 -0
- package/dist/domain/metadata-category.js.map +1 -0
- package/dist/domain/node-fact.d.ts +12 -0
- package/dist/domain/node-fact.d.ts.map +1 -0
- package/dist/domain/node-fact.js +2 -0
- package/dist/domain/node-fact.js.map +1 -0
- package/dist/domain/org.d.ts +10 -0
- package/dist/domain/org.d.ts.map +1 -0
- package/dist/domain/org.js +2 -0
- package/dist/domain/org.js.map +1 -0
- package/dist/domain/rel-types.d.ts +89 -0
- package/dist/domain/rel-types.d.ts.map +1 -0
- package/dist/domain/rel-types.js +99 -0
- package/dist/domain/rel-types.js.map +1 -0
- package/dist/domain/snapshot.d.ts +9 -0
- package/dist/domain/snapshot.d.ts.map +1 -0
- package/dist/domain/snapshot.js +2 -0
- package/dist/domain/snapshot.js.map +1 -0
- package/dist/embedding/__tests__/queue.test.d.ts +2 -0
- package/dist/embedding/__tests__/queue.test.d.ts.map +1 -0
- package/dist/embedding/__tests__/queue.test.js +64 -0
- package/dist/embedding/__tests__/queue.test.js.map +1 -0
- package/dist/embedding/index.d.ts +4 -0
- package/dist/embedding/index.d.ts.map +1 -0
- package/dist/embedding/index.js +3 -0
- package/dist/embedding/index.js.map +1 -0
- package/dist/embedding/pool.d.ts +10 -0
- package/dist/embedding/pool.d.ts.map +1 -0
- package/dist/embedding/pool.js +10 -0
- package/dist/embedding/pool.js.map +1 -0
- package/dist/embedding/queue.d.ts +39 -0
- package/dist/embedding/queue.d.ts.map +1 -0
- package/dist/embedding/queue.js +122 -0
- package/dist/embedding/queue.js.map +1 -0
- package/dist/embedding/worker.d.ts +7 -0
- package/dist/embedding/worker.d.ts.map +1 -0
- package/dist/embedding/worker.js +7 -0
- package/dist/embedding/worker.js.map +1 -0
- package/dist/extractors/__tests__/network-egress.test.d.ts +2 -0
- package/dist/extractors/__tests__/network-egress.test.d.ts.map +1 -0
- package/dist/extractors/__tests__/network-egress.test.js +32 -0
- package/dist/extractors/__tests__/network-egress.test.js.map +1 -0
- package/dist/extractors/filesystem/__tests__/filesystem.test.d.ts +2 -0
- package/dist/extractors/filesystem/__tests__/filesystem.test.d.ts.map +1 -0
- package/dist/extractors/filesystem/__tests__/filesystem.test.js +96 -0
- package/dist/extractors/filesystem/__tests__/filesystem.test.js.map +1 -0
- package/dist/extractors/filesystem/index.d.ts +20 -0
- package/dist/extractors/filesystem/index.d.ts.map +1 -0
- package/dist/extractors/filesystem/index.js +378 -0
- package/dist/extractors/filesystem/index.js.map +1 -0
- package/dist/extractors/interfaces/metadata-source.d.ts +21 -0
- package/dist/extractors/interfaces/metadata-source.d.ts.map +1 -0
- package/dist/extractors/interfaces/metadata-source.js +2 -0
- package/dist/extractors/interfaces/metadata-source.js.map +1 -0
- package/dist/extractors/live-org/__tests__/_jsforce-mock.d.ts +38 -0
- package/dist/extractors/live-org/__tests__/_jsforce-mock.d.ts.map +1 -0
- package/dist/extractors/live-org/__tests__/_jsforce-mock.js +96 -0
- package/dist/extractors/live-org/__tests__/_jsforce-mock.js.map +1 -0
- package/dist/extractors/live-org/__tests__/auth.test.d.ts +2 -0
- package/dist/extractors/live-org/__tests__/auth.test.d.ts.map +1 -0
- package/dist/extractors/live-org/__tests__/auth.test.js +85 -0
- package/dist/extractors/live-org/__tests__/auth.test.js.map +1 -0
- package/dist/extractors/live-org/__tests__/bulk-retrieve.test.d.ts +2 -0
- package/dist/extractors/live-org/__tests__/bulk-retrieve.test.d.ts.map +1 -0
- package/dist/extractors/live-org/__tests__/bulk-retrieve.test.js +150 -0
- package/dist/extractors/live-org/__tests__/bulk-retrieve.test.js.map +1 -0
- package/dist/extractors/live-org/__tests__/capabilities.test.d.ts +2 -0
- package/dist/extractors/live-org/__tests__/capabilities.test.d.ts.map +1 -0
- package/dist/extractors/live-org/__tests__/capabilities.test.js +54 -0
- package/dist/extractors/live-org/__tests__/capabilities.test.js.map +1 -0
- package/dist/extractors/live-org/__tests__/discovery.test.d.ts +2 -0
- package/dist/extractors/live-org/__tests__/discovery.test.d.ts.map +1 -0
- package/dist/extractors/live-org/__tests__/discovery.test.js +55 -0
- package/dist/extractors/live-org/__tests__/discovery.test.js.map +1 -0
- package/dist/extractors/live-org/__tests__/dispatch.test.d.ts +2 -0
- package/dist/extractors/live-org/__tests__/dispatch.test.d.ts.map +1 -0
- package/dist/extractors/live-org/__tests__/dispatch.test.js +68 -0
- package/dist/extractors/live-org/__tests__/dispatch.test.js.map +1 -0
- package/dist/extractors/live-org/__tests__/extractor-enrichment.test.d.ts +2 -0
- package/dist/extractors/live-org/__tests__/extractor-enrichment.test.d.ts.map +1 -0
- package/dist/extractors/live-org/__tests__/extractor-enrichment.test.js +312 -0
- package/dist/extractors/live-org/__tests__/extractor-enrichment.test.js.map +1 -0
- package/dist/extractors/live-org/__tests__/pools.test.d.ts +2 -0
- package/dist/extractors/live-org/__tests__/pools.test.d.ts.map +1 -0
- package/dist/extractors/live-org/__tests__/pools.test.js +75 -0
- package/dist/extractors/live-org/__tests__/pools.test.js.map +1 -0
- package/dist/extractors/live-org/__tests__/rate-limit.test.d.ts +2 -0
- package/dist/extractors/live-org/__tests__/rate-limit.test.d.ts.map +1 -0
- package/dist/extractors/live-org/__tests__/rate-limit.test.js +33 -0
- package/dist/extractors/live-org/__tests__/rate-limit.test.js.map +1 -0
- package/dist/extractors/live-org/__tests__/read-only-proxy.test.d.ts +2 -0
- package/dist/extractors/live-org/__tests__/read-only-proxy.test.d.ts.map +1 -0
- package/dist/extractors/live-org/__tests__/read-only-proxy.test.js +376 -0
- package/dist/extractors/live-org/__tests__/read-only-proxy.test.js.map +1 -0
- package/dist/extractors/live-org/__tests__/source-member.test.d.ts +2 -0
- package/dist/extractors/live-org/__tests__/source-member.test.d.ts.map +1 -0
- package/dist/extractors/live-org/__tests__/source-member.test.js +84 -0
- package/dist/extractors/live-org/__tests__/source-member.test.js.map +1 -0
- package/dist/extractors/live-org/__tests__/vlocity-runner.test.d.ts +2 -0
- package/dist/extractors/live-org/__tests__/vlocity-runner.test.d.ts.map +1 -0
- package/dist/extractors/live-org/__tests__/vlocity-runner.test.js +88 -0
- package/dist/extractors/live-org/__tests__/vlocity-runner.test.js.map +1 -0
- package/dist/extractors/live-org/auth.d.ts +37 -0
- package/dist/extractors/live-org/auth.d.ts.map +1 -0
- package/dist/extractors/live-org/auth.js +124 -0
- package/dist/extractors/live-org/auth.js.map +1 -0
- package/dist/extractors/live-org/bulk-retrieve.d.ts +51 -0
- package/dist/extractors/live-org/bulk-retrieve.d.ts.map +1 -0
- package/dist/extractors/live-org/bulk-retrieve.js +416 -0
- package/dist/extractors/live-org/bulk-retrieve.js.map +1 -0
- package/dist/extractors/live-org/capabilities.d.ts +18 -0
- package/dist/extractors/live-org/capabilities.d.ts.map +1 -0
- package/dist/extractors/live-org/capabilities.js +72 -0
- package/dist/extractors/live-org/capabilities.js.map +1 -0
- package/dist/extractors/live-org/discovery.d.ts +14 -0
- package/dist/extractors/live-org/discovery.d.ts.map +1 -0
- package/dist/extractors/live-org/discovery.js +22 -0
- package/dist/extractors/live-org/discovery.js.map +1 -0
- package/dist/extractors/live-org/dispatch.d.ts +20 -0
- package/dist/extractors/live-org/dispatch.d.ts.map +1 -0
- package/dist/extractors/live-org/dispatch.js +52 -0
- package/dist/extractors/live-org/dispatch.js.map +1 -0
- package/dist/extractors/live-org/errors.d.ts +2 -0
- package/dist/extractors/live-org/errors.d.ts.map +1 -0
- package/dist/extractors/live-org/errors.js +2 -0
- package/dist/extractors/live-org/errors.js.map +1 -0
- package/dist/extractors/live-org/extractors/apex.d.ts +5 -0
- package/dist/extractors/live-org/extractors/apex.d.ts.map +1 -0
- package/dist/extractors/live-org/extractors/apex.js +105 -0
- package/dist/extractors/live-org/extractors/apex.js.map +1 -0
- package/dist/extractors/live-org/extractors/flow.d.ts +9 -0
- package/dist/extractors/live-org/extractors/flow.d.ts.map +1 -0
- package/dist/extractors/live-org/extractors/flow.js +65 -0
- package/dist/extractors/live-org/extractors/flow.js.map +1 -0
- package/dist/extractors/live-org/extractors/generic-metadata.d.ts +20 -0
- package/dist/extractors/live-org/extractors/generic-metadata.d.ts.map +1 -0
- package/dist/extractors/live-org/extractors/generic-metadata.js +114 -0
- package/dist/extractors/live-org/extractors/generic-metadata.js.map +1 -0
- package/dist/extractors/live-org/extractors/generic-sobject.d.ts +7 -0
- package/dist/extractors/live-org/extractors/generic-sobject.d.ts.map +1 -0
- package/dist/extractors/live-org/extractors/generic-sobject.js +31 -0
- package/dist/extractors/live-org/extractors/generic-sobject.js.map +1 -0
- package/dist/extractors/live-org/extractors/integration.d.ts +3 -0
- package/dist/extractors/live-org/extractors/integration.d.ts.map +1 -0
- package/dist/extractors/live-org/extractors/integration.js +65 -0
- package/dist/extractors/live-org/extractors/integration.js.map +1 -0
- package/dist/extractors/live-org/extractors/lwc.d.ts +3 -0
- package/dist/extractors/live-org/extractors/lwc.d.ts.map +1 -0
- package/dist/extractors/live-org/extractors/lwc.js +107 -0
- package/dist/extractors/live-org/extractors/lwc.js.map +1 -0
- package/dist/extractors/live-org/extractors/object.d.ts +13 -0
- package/dist/extractors/live-org/extractors/object.d.ts.map +1 -0
- package/dist/extractors/live-org/extractors/object.js +617 -0
- package/dist/extractors/live-org/extractors/object.js.map +1 -0
- package/dist/extractors/live-org/extractors/omnistudio.d.ts +3 -0
- package/dist/extractors/live-org/extractors/omnistudio.d.ts.map +1 -0
- package/dist/extractors/live-org/extractors/omnistudio.js +141 -0
- package/dist/extractors/live-org/extractors/omnistudio.js.map +1 -0
- package/dist/extractors/live-org/extractors/security.d.ts +3 -0
- package/dist/extractors/live-org/extractors/security.d.ts.map +1 -0
- package/dist/extractors/live-org/extractors/security.js +76 -0
- package/dist/extractors/live-org/extractors/security.js.map +1 -0
- package/dist/extractors/live-org/extractors/vlocity.d.ts +2 -0
- package/dist/extractors/live-org/extractors/vlocity.d.ts.map +1 -0
- package/dist/extractors/live-org/extractors/vlocity.js +2 -0
- package/dist/extractors/live-org/extractors/vlocity.js.map +1 -0
- package/dist/extractors/live-org/index.d.ts +21 -0
- package/dist/extractors/live-org/index.d.ts.map +1 -0
- package/dist/extractors/live-org/index.js +17 -0
- package/dist/extractors/live-org/index.js.map +1 -0
- package/dist/extractors/live-org/rate-limit.d.ts +114 -0
- package/dist/extractors/live-org/rate-limit.d.ts.map +1 -0
- package/dist/extractors/live-org/rate-limit.js +251 -0
- package/dist/extractors/live-org/rate-limit.js.map +1 -0
- package/dist/extractors/live-org/read-only-proxy.d.ts +2 -0
- package/dist/extractors/live-org/read-only-proxy.d.ts.map +1 -0
- package/dist/extractors/live-org/read-only-proxy.js +299 -0
- package/dist/extractors/live-org/read-only-proxy.js.map +1 -0
- package/dist/extractors/live-org/reports.d.ts +4 -0
- package/dist/extractors/live-org/reports.d.ts.map +1 -0
- package/dist/extractors/live-org/reports.js +10 -0
- package/dist/extractors/live-org/reports.js.map +1 -0
- package/dist/extractors/live-org/source-member.d.ts +8 -0
- package/dist/extractors/live-org/source-member.d.ts.map +1 -0
- package/dist/extractors/live-org/source-member.js +47 -0
- package/dist/extractors/live-org/source-member.js.map +1 -0
- package/dist/extractors/live-org/vlocity/query-definitions.yml +153 -0
- package/dist/extractors/live-org/vlocity/runner.d.ts +21 -0
- package/dist/extractors/live-org/vlocity/runner.d.ts.map +1 -0
- package/dist/extractors/live-org/vlocity/runner.js +214 -0
- package/dist/extractors/live-org/vlocity/runner.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/ingest/__tests__/full-sync-deletion.test.d.ts +2 -0
- package/dist/ingest/__tests__/full-sync-deletion.test.d.ts.map +1 -0
- package/dist/ingest/__tests__/full-sync-deletion.test.js +200 -0
- package/dist/ingest/__tests__/full-sync-deletion.test.js.map +1 -0
- package/dist/ingest/__tests__/incremental-deletion.test.d.ts +2 -0
- package/dist/ingest/__tests__/incremental-deletion.test.d.ts.map +1 -0
- package/dist/ingest/__tests__/incremental-deletion.test.js +92 -0
- package/dist/ingest/__tests__/incremental-deletion.test.js.map +1 -0
- package/dist/ingest/__tests__/live-ingest.test.d.ts +2 -0
- package/dist/ingest/__tests__/live-ingest.test.d.ts.map +1 -0
- package/dist/ingest/__tests__/live-ingest.test.js +155 -0
- package/dist/ingest/__tests__/live-ingest.test.js.map +1 -0
- package/dist/ingest/__tests__/multi-org-orchestrator.test.d.ts +2 -0
- package/dist/ingest/__tests__/multi-org-orchestrator.test.d.ts.map +1 -0
- package/dist/ingest/__tests__/multi-org-orchestrator.test.js +101 -0
- package/dist/ingest/__tests__/multi-org-orchestrator.test.js.map +1 -0
- package/dist/ingest/__tests__/read-only-wrapping.test.d.ts +2 -0
- package/dist/ingest/__tests__/read-only-wrapping.test.d.ts.map +1 -0
- package/dist/ingest/__tests__/read-only-wrapping.test.js +62 -0
- package/dist/ingest/__tests__/read-only-wrapping.test.js.map +1 -0
- package/dist/ingest/index.d.ts +5 -0
- package/dist/ingest/index.d.ts.map +1 -0
- package/dist/ingest/index.js +3 -0
- package/dist/ingest/index.js.map +1 -0
- package/dist/ingest/live-ingest.d.ts +59 -0
- package/dist/ingest/live-ingest.d.ts.map +1 -0
- package/dist/ingest/live-ingest.js +611 -0
- package/dist/ingest/live-ingest.js.map +1 -0
- package/dist/ingest/multi-org.d.ts +43 -0
- package/dist/ingest/multi-org.d.ts.map +1 -0
- package/dist/ingest/multi-org.js +93 -0
- package/dist/ingest/multi-org.js.map +1 -0
- package/dist/parsers/__tests__/_harness.d.ts +13 -0
- package/dist/parsers/__tests__/_harness.d.ts.map +1 -0
- package/dist/parsers/__tests__/_harness.js +84 -0
- package/dist/parsers/__tests__/_harness.js.map +1 -0
- package/dist/parsers/__tests__/apex.golden.test.d.ts +2 -0
- package/dist/parsers/__tests__/apex.golden.test.d.ts.map +1 -0
- package/dist/parsers/__tests__/apex.golden.test.js +28 -0
- package/dist/parsers/__tests__/apex.golden.test.js.map +1 -0
- package/dist/parsers/__tests__/cross-flavor.test.d.ts +2 -0
- package/dist/parsers/__tests__/cross-flavor.test.d.ts.map +1 -0
- package/dist/parsers/__tests__/cross-flavor.test.js +56 -0
- package/dist/parsers/__tests__/cross-flavor.test.js.map +1 -0
- package/dist/parsers/__tests__/flow.golden.test.d.ts +2 -0
- package/dist/parsers/__tests__/flow.golden.test.d.ts.map +1 -0
- package/dist/parsers/__tests__/flow.golden.test.js +17 -0
- package/dist/parsers/__tests__/flow.golden.test.js.map +1 -0
- package/dist/parsers/__tests__/integration.golden.test.d.ts +2 -0
- package/dist/parsers/__tests__/integration.golden.test.d.ts.map +1 -0
- package/dist/parsers/__tests__/integration.golden.test.js +31 -0
- package/dist/parsers/__tests__/integration.golden.test.js.map +1 -0
- package/dist/parsers/__tests__/long-tail.golden.test.d.ts +2 -0
- package/dist/parsers/__tests__/long-tail.golden.test.d.ts.map +1 -0
- package/dist/parsers/__tests__/long-tail.golden.test.js +115 -0
- package/dist/parsers/__tests__/long-tail.golden.test.js.map +1 -0
- package/dist/parsers/__tests__/lwc.golden.test.d.ts +2 -0
- package/dist/parsers/__tests__/lwc.golden.test.d.ts.map +1 -0
- package/dist/parsers/__tests__/lwc.golden.test.js +16 -0
- package/dist/parsers/__tests__/lwc.golden.test.js.map +1 -0
- package/dist/parsers/__tests__/object-inline-fields.test.d.ts +2 -0
- package/dist/parsers/__tests__/object-inline-fields.test.d.ts.map +1 -0
- package/dist/parsers/__tests__/object-inline-fields.test.js +115 -0
- package/dist/parsers/__tests__/object-inline-fields.test.js.map +1 -0
- package/dist/parsers/__tests__/object.golden.test.d.ts +2 -0
- package/dist/parsers/__tests__/object.golden.test.d.ts.map +1 -0
- package/dist/parsers/__tests__/object.golden.test.js +33 -0
- package/dist/parsers/__tests__/object.golden.test.js.map +1 -0
- package/dist/parsers/__tests__/omnistudio.golden.test.d.ts +2 -0
- package/dist/parsers/__tests__/omnistudio.golden.test.d.ts.map +1 -0
- package/dist/parsers/__tests__/omnistudio.golden.test.js +6 -0
- package/dist/parsers/__tests__/omnistudio.golden.test.js.map +1 -0
- package/dist/parsers/__tests__/registry.test.d.ts +2 -0
- package/dist/parsers/__tests__/registry.test.d.ts.map +1 -0
- package/dist/parsers/__tests__/registry.test.js +23 -0
- package/dist/parsers/__tests__/registry.test.js.map +1 -0
- package/dist/parsers/__tests__/security.golden.test.d.ts +2 -0
- package/dist/parsers/__tests__/security.golden.test.d.ts.map +1 -0
- package/dist/parsers/__tests__/security.golden.test.js +31 -0
- package/dist/parsers/__tests__/security.golden.test.js.map +1 -0
- package/dist/parsers/__tests__/vlocity.golden.test.d.ts +2 -0
- package/dist/parsers/__tests__/vlocity.golden.test.d.ts.map +1 -0
- package/dist/parsers/__tests__/vlocity.golden.test.js +8 -0
- package/dist/parsers/__tests__/vlocity.golden.test.js.map +1 -0
- package/dist/parsers/__tests__/worker-pool.test.d.ts +2 -0
- package/dist/parsers/__tests__/worker-pool.test.d.ts.map +1 -0
- package/dist/parsers/__tests__/worker-pool.test.js +48 -0
- package/dist/parsers/__tests__/worker-pool.test.js.map +1 -0
- package/dist/parsers/_xml-helpers.d.ts +5 -0
- package/dist/parsers/_xml-helpers.d.ts.map +1 -0
- package/dist/parsers/_xml-helpers.js +12 -0
- package/dist/parsers/_xml-helpers.js.map +1 -0
- package/dist/parsers/apex/class.d.ts +13 -0
- package/dist/parsers/apex/class.d.ts.map +1 -0
- package/dist/parsers/apex/class.js +325 -0
- package/dist/parsers/apex/class.js.map +1 -0
- package/dist/parsers/apex/common.d.ts +11 -0
- package/dist/parsers/apex/common.d.ts.map +1 -0
- package/dist/parsers/apex/common.js +55 -0
- package/dist/parsers/apex/common.js.map +1 -0
- package/dist/parsers/apex/index.d.ts +6 -0
- package/dist/parsers/apex/index.d.ts.map +1 -0
- package/dist/parsers/apex/index.js +9 -0
- package/dist/parsers/apex/index.js.map +1 -0
- package/dist/parsers/apex/trigger.d.ts +12 -0
- package/dist/parsers/apex/trigger.d.ts.map +1 -0
- package/dist/parsers/apex/trigger.js +36 -0
- package/dist/parsers/apex/trigger.js.map +1 -0
- package/dist/parsers/apex/visitor.d.ts +2 -0
- package/dist/parsers/apex/visitor.d.ts.map +1 -0
- package/dist/parsers/apex/visitor.js +4 -0
- package/dist/parsers/apex/visitor.js.map +1 -0
- package/dist/parsers/common.d.ts +7 -0
- package/dist/parsers/common.d.ts.map +1 -0
- package/dist/parsers/common.js +37 -0
- package/dist/parsers/common.js.map +1 -0
- package/dist/parsers/contract.d.ts +31 -0
- package/dist/parsers/contract.d.ts.map +1 -0
- package/dist/parsers/contract.js +18 -0
- package/dist/parsers/contract.js.map +1 -0
- package/dist/parsers/cross-flavor-resolver.d.ts +18 -0
- package/dist/parsers/cross-flavor-resolver.d.ts.map +1 -0
- package/dist/parsers/cross-flavor-resolver.js +73 -0
- package/dist/parsers/cross-flavor-resolver.js.map +1 -0
- package/dist/parsers/experience/index.d.ts +2 -0
- package/dist/parsers/experience/index.d.ts.map +1 -0
- package/dist/parsers/experience/index.js +3 -0
- package/dist/parsers/experience/index.js.map +1 -0
- package/dist/parsers/flow/element-visitors.d.ts +2 -0
- package/dist/parsers/flow/element-visitors.d.ts.map +1 -0
- package/dist/parsers/flow/element-visitors.js +3 -0
- package/dist/parsers/flow/element-visitors.js.map +1 -0
- package/dist/parsers/flow/index.d.ts +4 -0
- package/dist/parsers/flow/index.d.ts.map +1 -0
- package/dist/parsers/flow/index.js +6 -0
- package/dist/parsers/flow/index.js.map +1 -0
- package/dist/parsers/flow/parser.d.ts +11 -0
- package/dist/parsers/flow/parser.d.ts.map +1 -0
- package/dist/parsers/flow/parser.js +101 -0
- package/dist/parsers/flow/parser.js.map +1 -0
- package/dist/parsers/genai/index.d.ts +2 -0
- package/dist/parsers/genai/index.d.ts.map +1 -0
- package/dist/parsers/genai/index.js +3 -0
- package/dist/parsers/genai/index.js.map +1 -0
- package/dist/parsers/generic/index.d.ts +4 -0
- package/dist/parsers/generic/index.d.ts.map +1 -0
- package/dist/parsers/generic/index.js +6 -0
- package/dist/parsers/generic/index.js.map +1 -0
- package/dist/parsers/generic/opaque-node-parser.d.ts +16 -0
- package/dist/parsers/generic/opaque-node-parser.d.ts.map +1 -0
- package/dist/parsers/generic/opaque-node-parser.js +18 -0
- package/dist/parsers/generic/opaque-node-parser.js.map +1 -0
- package/dist/parsers/index.d.ts +22 -0
- package/dist/parsers/index.d.ts.map +1 -0
- package/dist/parsers/index.js +23 -0
- package/dist/parsers/index.js.map +1 -0
- package/dist/parsers/integration/index.d.ts +2 -0
- package/dist/parsers/integration/index.d.ts.map +1 -0
- package/dist/parsers/integration/index.js +3 -0
- package/dist/parsers/integration/index.js.map +1 -0
- package/dist/parsers/lwc/bundle.d.ts +11 -0
- package/dist/parsers/lwc/bundle.d.ts.map +1 -0
- package/dist/parsers/lwc/bundle.js +54 -0
- package/dist/parsers/lwc/bundle.js.map +1 -0
- package/dist/parsers/lwc/html-visitor.d.ts +8 -0
- package/dist/parsers/lwc/html-visitor.d.ts.map +1 -0
- package/dist/parsers/lwc/html-visitor.js +57 -0
- package/dist/parsers/lwc/html-visitor.js.map +1 -0
- package/dist/parsers/lwc/index.d.ts +4 -0
- package/dist/parsers/lwc/index.d.ts.map +1 -0
- package/dist/parsers/lwc/index.js +6 -0
- package/dist/parsers/lwc/index.js.map +1 -0
- package/dist/parsers/lwc/js-visitor.d.ts +8 -0
- package/dist/parsers/lwc/js-visitor.d.ts.map +1 -0
- package/dist/parsers/lwc/js-visitor.js +93 -0
- package/dist/parsers/lwc/js-visitor.js.map +1 -0
- package/dist/parsers/lwc/xml-meta.d.ts +2 -0
- package/dist/parsers/lwc/xml-meta.d.ts.map +1 -0
- package/dist/parsers/lwc/xml-meta.js +21 -0
- package/dist/parsers/lwc/xml-meta.js.map +1 -0
- package/dist/parsers/object/field.d.ts +9 -0
- package/dist/parsers/object/field.d.ts.map +1 -0
- package/dist/parsers/object/field.js +14 -0
- package/dist/parsers/object/field.js.map +1 -0
- package/dist/parsers/object/index.d.ts +7 -0
- package/dist/parsers/object/index.d.ts.map +1 -0
- package/dist/parsers/object/index.js +9 -0
- package/dist/parsers/object/index.js.map +1 -0
- package/dist/parsers/object/object.d.ts +14 -0
- package/dist/parsers/object/object.d.ts.map +1 -0
- package/dist/parsers/object/object.js +188 -0
- package/dist/parsers/object/object.js.map +1 -0
- package/dist/parsers/object/record-type.d.ts +7 -0
- package/dist/parsers/object/record-type.d.ts.map +1 -0
- package/dist/parsers/object/record-type.js +12 -0
- package/dist/parsers/object/record-type.js.map +1 -0
- package/dist/parsers/object/validation-rule.d.ts +8 -0
- package/dist/parsers/object/validation-rule.d.ts.map +1 -0
- package/dist/parsers/object/validation-rule.js +13 -0
- package/dist/parsers/object/validation-rule.js.map +1 -0
- package/dist/parsers/omnistudio/data-transform.d.ts +11 -0
- package/dist/parsers/omnistudio/data-transform.d.ts.map +1 -0
- package/dist/parsers/omnistudio/data-transform.js +29 -0
- package/dist/parsers/omnistudio/data-transform.js.map +1 -0
- package/dist/parsers/omnistudio/index.d.ts +10 -0
- package/dist/parsers/omnistudio/index.d.ts.map +1 -0
- package/dist/parsers/omnistudio/index.js +15 -0
- package/dist/parsers/omnistudio/index.js.map +1 -0
- package/dist/parsers/omnistudio/integration-procedure.d.ts +11 -0
- package/dist/parsers/omnistudio/integration-procedure.d.ts.map +1 -0
- package/dist/parsers/omnistudio/integration-procedure.js +44 -0
- package/dist/parsers/omnistudio/integration-procedure.js.map +1 -0
- package/dist/parsers/omnistudio/process.d.ts +11 -0
- package/dist/parsers/omnistudio/process.d.ts.map +1 -0
- package/dist/parsers/omnistudio/process.js +49 -0
- package/dist/parsers/omnistudio/process.js.map +1 -0
- package/dist/parsers/omnistudio/ui-card.d.ts +11 -0
- package/dist/parsers/omnistudio/ui-card.d.ts.map +1 -0
- package/dist/parsers/omnistudio/ui-card.js +44 -0
- package/dist/parsers/omnistudio/ui-card.js.map +1 -0
- package/dist/parsers/presentation/index.d.ts +2 -0
- package/dist/parsers/presentation/index.d.ts.map +1 -0
- package/dist/parsers/presentation/index.js +3 -0
- package/dist/parsers/presentation/index.js.map +1 -0
- package/dist/parsers/registry.d.ts +13 -0
- package/dist/parsers/registry.d.ts.map +1 -0
- package/dist/parsers/registry.js +25 -0
- package/dist/parsers/registry.js.map +1 -0
- package/dist/parsers/reporting/index.d.ts +2 -0
- package/dist/parsers/reporting/index.d.ts.map +1 -0
- package/dist/parsers/reporting/index.js +3 -0
- package/dist/parsers/reporting/index.js.map +1 -0
- package/dist/parsers/rules/__tests__/applies-to.test.d.ts +2 -0
- package/dist/parsers/rules/__tests__/applies-to.test.d.ts.map +1 -0
- package/dist/parsers/rules/__tests__/applies-to.test.js +31 -0
- package/dist/parsers/rules/__tests__/applies-to.test.js.map +1 -0
- package/dist/parsers/rules/__tests__/applies-to.test.ts +40 -0
- package/dist/parsers/rules/__tests__/engine.test.d.ts +2 -0
- package/dist/parsers/rules/__tests__/engine.test.d.ts.map +1 -0
- package/dist/parsers/rules/__tests__/engine.test.js +127 -0
- package/dist/parsers/rules/__tests__/engine.test.js.map +1 -0
- package/dist/parsers/rules/__tests__/engine.test.ts +138 -0
- package/dist/parsers/rules/__tests__/loader.test.d.ts +2 -0
- package/dist/parsers/rules/__tests__/loader.test.d.ts.map +1 -0
- package/dist/parsers/rules/__tests__/loader.test.js +31 -0
- package/dist/parsers/rules/__tests__/loader.test.js.map +1 -0
- package/dist/parsers/rules/__tests__/loader.test.ts +37 -0
- package/dist/parsers/rules/__tests__/schema.test.d.ts +2 -0
- package/dist/parsers/rules/__tests__/schema.test.d.ts.map +1 -0
- package/dist/parsers/rules/__tests__/schema.test.js +33 -0
- package/dist/parsers/rules/__tests__/schema.test.js.map +1 -0
- package/dist/parsers/rules/__tests__/schema.test.ts +37 -0
- package/dist/parsers/rules/__tests__/selectors.test.d.ts +2 -0
- package/dist/parsers/rules/__tests__/selectors.test.d.ts.map +1 -0
- package/dist/parsers/rules/__tests__/selectors.test.js +51 -0
- package/dist/parsers/rules/__tests__/selectors.test.js.map +1 -0
- package/dist/parsers/rules/__tests__/selectors.test.ts +62 -0
- package/dist/parsers/rules/_engine.d.ts +18 -0
- package/dist/parsers/rules/_engine.d.ts.map +1 -0
- package/dist/parsers/rules/_engine.js +159 -0
- package/dist/parsers/rules/_engine.js.map +1 -0
- package/dist/parsers/rules/_engine.ts +171 -0
- package/dist/parsers/rules/_generic-opaque.d.ts +13 -0
- package/dist/parsers/rules/_generic-opaque.d.ts.map +1 -0
- package/dist/parsers/rules/_generic-opaque.js +15 -0
- package/dist/parsers/rules/_generic-opaque.js.map +1 -0
- package/dist/parsers/rules/_generic-opaque.ts +16 -0
- package/dist/parsers/rules/_loader.d.ts +17 -0
- package/dist/parsers/rules/_loader.d.ts.map +1 -0
- package/dist/parsers/rules/_loader.js +58 -0
- package/dist/parsers/rules/_loader.js.map +1 -0
- package/dist/parsers/rules/_loader.ts +65 -0
- package/dist/parsers/rules/_schema.d.ts +143 -0
- package/dist/parsers/rules/_schema.d.ts.map +1 -0
- package/dist/parsers/rules/_schema.js +44 -0
- package/dist/parsers/rules/_schema.js.map +1 -0
- package/dist/parsers/rules/_schema.ts +54 -0
- package/dist/parsers/rules/_selectors.d.ts +37 -0
- package/dist/parsers/rules/_selectors.d.ts.map +1 -0
- package/dist/parsers/rules/_selectors.js +445 -0
- package/dist/parsers/rules/_selectors.js.map +1 -0
- package/dist/parsers/rules/_selectors.ts +416 -0
- package/dist/parsers/rules/apex-component.yml +26 -0
- package/dist/parsers/rules/apex-page.yml +32 -0
- package/dist/parsers/rules/approval-process.yml +25 -0
- package/dist/parsers/rules/custom-labels.yml +16 -0
- package/dist/parsers/rules/custom-metadata-type.yml +26 -0
- package/dist/parsers/rules/dashboard.yml +20 -0
- package/dist/parsers/rules/duplicate-rule.yml +20 -0
- package/dist/parsers/rules/external-service-registration.yml +20 -0
- package/dist/parsers/rules/gen-ai-planner.yml +19 -0
- package/dist/parsers/rules/gen-ai-plugin.yml +19 -0
- package/dist/parsers/rules/layout.yml +20 -0
- package/dist/parsers/rules/lightning-page.yml +21 -0
- package/dist/parsers/rules/named-credential.yml +15 -0
- package/dist/parsers/rules/network.yml +26 -0
- package/dist/parsers/rules/permission-set-group.yml +20 -0
- package/dist/parsers/rules/permission-set.yml +40 -0
- package/dist/parsers/rules/platform-event.yml +15 -0
- package/dist/parsers/rules/profile.yml +55 -0
- package/dist/parsers/rules/report.yml +25 -0
- package/dist/parsers/rules/sharing-rule.yml +78 -0
- package/dist/parsers/rules/workflow.yml +37 -0
- package/dist/parsers/security/index.d.ts +2 -0
- package/dist/parsers/security/index.d.ts.map +1 -0
- package/dist/parsers/security/index.js +5 -0
- package/dist/parsers/security/index.js.map +1 -0
- package/dist/parsers/sf-misc/index.d.ts +4 -0
- package/dist/parsers/sf-misc/index.d.ts.map +1 -0
- package/dist/parsers/sf-misc/index.js +6 -0
- package/dist/parsers/sf-misc/index.js.map +1 -0
- package/dist/parsers/sf-misc/matching-rule.d.ts +11 -0
- package/dist/parsers/sf-misc/matching-rule.d.ts.map +1 -0
- package/dist/parsers/sf-misc/matching-rule.js +17 -0
- package/dist/parsers/sf-misc/matching-rule.js.map +1 -0
- package/dist/parsers/vf/index.d.ts +2 -0
- package/dist/parsers/vf/index.d.ts.map +1 -0
- package/dist/parsers/vf/index.js +3 -0
- package/dist/parsers/vf/index.js.map +1 -0
- package/dist/parsers/vlocity/common.d.ts +26 -0
- package/dist/parsers/vlocity/common.d.ts.map +1 -0
- package/dist/parsers/vlocity/common.js +66 -0
- package/dist/parsers/vlocity/common.js.map +1 -0
- package/dist/parsers/vlocity/data-raptor.d.ts +11 -0
- package/dist/parsers/vlocity/data-raptor.d.ts.map +1 -0
- package/dist/parsers/vlocity/data-raptor.js +46 -0
- package/dist/parsers/vlocity/data-raptor.js.map +1 -0
- package/dist/parsers/vlocity/fallback.d.ts +7 -0
- package/dist/parsers/vlocity/fallback.d.ts.map +1 -0
- package/dist/parsers/vlocity/fallback.js +8 -0
- package/dist/parsers/vlocity/fallback.js.map +1 -0
- package/dist/parsers/vlocity/index.d.ts +7 -0
- package/dist/parsers/vlocity/index.d.ts.map +1 -0
- package/dist/parsers/vlocity/index.js +10 -0
- package/dist/parsers/vlocity/index.js.map +1 -0
- package/dist/parsers/vlocity/integration-procedure.d.ts +11 -0
- package/dist/parsers/vlocity/integration-procedure.d.ts.map +1 -0
- package/dist/parsers/vlocity/integration-procedure.js +53 -0
- package/dist/parsers/vlocity/integration-procedure.js.map +1 -0
- package/dist/parsers/vlocity/omni-script.d.ts +11 -0
- package/dist/parsers/vlocity/omni-script.d.ts.map +1 -0
- package/dist/parsers/vlocity/omni-script.js +50 -0
- package/dist/parsers/vlocity/omni-script.js.map +1 -0
- package/dist/parsers/vlocity/registry.d.ts +3 -0
- package/dist/parsers/vlocity/registry.d.ts.map +1 -0
- package/dist/parsers/vlocity/registry.js +11 -0
- package/dist/parsers/vlocity/registry.js.map +1 -0
- package/dist/parsers/vlocity/vlocity-card.d.ts +11 -0
- package/dist/parsers/vlocity/vlocity-card.d.ts.map +1 -0
- package/dist/parsers/vlocity/vlocity-card.js +55 -0
- package/dist/parsers/vlocity/vlocity-card.js.map +1 -0
- package/dist/parsers/worker-pool.d.ts +30 -0
- package/dist/parsers/worker-pool.d.ts.map +1 -0
- package/dist/parsers/worker-pool.js +57 -0
- package/dist/parsers/worker-pool.js.map +1 -0
- package/dist/render/mermaid/__tests__/mermaid.test.d.ts +2 -0
- package/dist/render/mermaid/__tests__/mermaid.test.d.ts.map +1 -0
- package/dist/render/mermaid/__tests__/mermaid.test.js +74 -0
- package/dist/render/mermaid/__tests__/mermaid.test.js.map +1 -0
- package/dist/render/mermaid/dependency-graph.d.ts +15 -0
- package/dist/render/mermaid/dependency-graph.d.ts.map +1 -0
- package/dist/render/mermaid/dependency-graph.js +43 -0
- package/dist/render/mermaid/dependency-graph.js.map +1 -0
- package/dist/render/mermaid/diff.d.ts +12 -0
- package/dist/render/mermaid/diff.d.ts.map +1 -0
- package/dist/render/mermaid/diff.js +22 -0
- package/dist/render/mermaid/diff.js.map +1 -0
- package/dist/render/mermaid/flow.d.ts +18 -0
- package/dist/render/mermaid/flow.d.ts.map +1 -0
- package/dist/render/mermaid/flow.js +23 -0
- package/dist/render/mermaid/flow.js.map +1 -0
- package/dist/render/mermaid/index.d.ts +6 -0
- package/dist/render/mermaid/index.d.ts.map +1 -0
- package/dist/render/mermaid/index.js +6 -0
- package/dist/render/mermaid/index.js.map +1 -0
- package/dist/render/mermaid/sequence.d.ts +16 -0
- package/dist/render/mermaid/sequence.d.ts.map +1 -0
- package/dist/render/mermaid/sequence.js +20 -0
- package/dist/render/mermaid/sequence.js.map +1 -0
- package/dist/render/mermaid/shared.d.ts +22 -0
- package/dist/render/mermaid/shared.d.ts.map +1 -0
- package/dist/render/mermaid/shared.js +47 -0
- package/dist/render/mermaid/shared.js.map +1 -0
- package/dist/storage/__tests__/analysis-tables-migration.test.d.ts +2 -0
- package/dist/storage/__tests__/analysis-tables-migration.test.d.ts.map +1 -0
- package/dist/storage/__tests__/analysis-tables-migration.test.js +44 -0
- package/dist/storage/__tests__/analysis-tables-migration.test.js.map +1 -0
- package/dist/storage/__tests__/graph-store.test.d.ts +2 -0
- package/dist/storage/__tests__/graph-store.test.d.ts.map +1 -0
- package/dist/storage/__tests__/graph-store.test.js +132 -0
- package/dist/storage/__tests__/graph-store.test.js.map +1 -0
- package/dist/storage/__tests__/identifier.test.d.ts +2 -0
- package/dist/storage/__tests__/identifier.test.d.ts.map +1 -0
- package/dist/storage/__tests__/identifier.test.js +35 -0
- package/dist/storage/__tests__/identifier.test.js.map +1 -0
- package/dist/storage/__tests__/load-better-sqlite3.test.d.ts +2 -0
- package/dist/storage/__tests__/load-better-sqlite3.test.d.ts.map +1 -0
- package/dist/storage/__tests__/load-better-sqlite3.test.js +65 -0
- package/dist/storage/__tests__/load-better-sqlite3.test.js.map +1 -0
- package/dist/storage/__tests__/migrations.test.d.ts +2 -0
- package/dist/storage/__tests__/migrations.test.d.ts.map +1 -0
- package/dist/storage/__tests__/migrations.test.js +93 -0
- package/dist/storage/__tests__/migrations.test.js.map +1 -0
- package/dist/storage/__tests__/perf-50k.test.d.ts +2 -0
- package/dist/storage/__tests__/perf-50k.test.d.ts.map +1 -0
- package/dist/storage/__tests__/perf-50k.test.js +67 -0
- package/dist/storage/__tests__/perf-50k.test.js.map +1 -0
- package/dist/storage/__tests__/snapshot-store.test.d.ts +2 -0
- package/dist/storage/__tests__/snapshot-store.test.d.ts.map +1 -0
- package/dist/storage/__tests__/snapshot-store.test.js +117 -0
- package/dist/storage/__tests__/snapshot-store.test.js.map +1 -0
- package/dist/storage/__tests__/snippets.test.d.ts +2 -0
- package/dist/storage/__tests__/snippets.test.d.ts.map +1 -0
- package/dist/storage/__tests__/snippets.test.js +88 -0
- package/dist/storage/__tests__/snippets.test.js.map +1 -0
- package/dist/storage/__tests__/vector-store-load-failure.test.d.ts +2 -0
- package/dist/storage/__tests__/vector-store-load-failure.test.d.ts.map +1 -0
- package/dist/storage/__tests__/vector-store-load-failure.test.js +42 -0
- package/dist/storage/__tests__/vector-store-load-failure.test.js.map +1 -0
- package/dist/storage/__tests__/vector-store.test.d.ts +2 -0
- package/dist/storage/__tests__/vector-store.test.d.ts.map +1 -0
- package/dist/storage/__tests__/vector-store.test.js +87 -0
- package/dist/storage/__tests__/vector-store.test.js.map +1 -0
- package/dist/storage/identifier.d.ts +5 -0
- package/dist/storage/identifier.d.ts.map +1 -0
- package/dist/storage/identifier.js +21 -0
- package/dist/storage/identifier.js.map +1 -0
- package/dist/storage/index.d.ts +12 -0
- package/dist/storage/index.d.ts.map +1 -0
- package/dist/storage/index.js +8 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/storage/interfaces.d.ts +101 -0
- package/dist/storage/interfaces.d.ts.map +1 -0
- package/dist/storage/interfaces.js +2 -0
- package/dist/storage/interfaces.js.map +1 -0
- package/dist/storage/sqlite/graph-store.d.ts +62 -0
- package/dist/storage/sqlite/graph-store.d.ts.map +1 -0
- package/dist/storage/sqlite/graph-store.js +533 -0
- package/dist/storage/sqlite/graph-store.js.map +1 -0
- package/dist/storage/sqlite/load-better-sqlite3.d.ts +50 -0
- package/dist/storage/sqlite/load-better-sqlite3.d.ts.map +1 -0
- package/dist/storage/sqlite/load-better-sqlite3.js +188 -0
- package/dist/storage/sqlite/load-better-sqlite3.js.map +1 -0
- package/dist/storage/sqlite/migrations.d.ts +18 -0
- package/dist/storage/sqlite/migrations.d.ts.map +1 -0
- package/dist/storage/sqlite/migrations.js +291 -0
- package/dist/storage/sqlite/migrations.js.map +1 -0
- package/dist/storage/sqlite/snapshot-store.d.ts +31 -0
- package/dist/storage/sqlite/snapshot-store.d.ts.map +1 -0
- package/dist/storage/sqlite/snapshot-store.js +255 -0
- package/dist/storage/sqlite/snapshot-store.js.map +1 -0
- package/dist/storage/sqlite/vector-store.d.ts +28 -0
- package/dist/storage/sqlite/vector-store.d.ts.map +1 -0
- package/dist/storage/sqlite/vector-store.js +174 -0
- package/dist/storage/sqlite/vector-store.js.map +1 -0
- package/dist/telemetry/__tests__/event-schema.test.d.ts +2 -0
- package/dist/telemetry/__tests__/event-schema.test.d.ts.map +1 -0
- package/dist/telemetry/__tests__/event-schema.test.js +56 -0
- package/dist/telemetry/__tests__/event-schema.test.js.map +1 -0
- package/dist/telemetry/__tests__/machine-id.test.d.ts +2 -0
- package/dist/telemetry/__tests__/machine-id.test.d.ts.map +1 -0
- package/dist/telemetry/__tests__/machine-id.test.js +33 -0
- package/dist/telemetry/__tests__/machine-id.test.js.map +1 -0
- package/dist/telemetry/__tests__/pipeline.test.d.ts +2 -0
- package/dist/telemetry/__tests__/pipeline.test.d.ts.map +1 -0
- package/dist/telemetry/__tests__/pipeline.test.js +68 -0
- package/dist/telemetry/__tests__/pipeline.test.js.map +1 -0
- package/dist/telemetry/__tests__/sanitizer.test.d.ts +2 -0
- package/dist/telemetry/__tests__/sanitizer.test.d.ts.map +1 -0
- package/dist/telemetry/__tests__/sanitizer.test.js +143 -0
- package/dist/telemetry/__tests__/sanitizer.test.js.map +1 -0
- package/dist/telemetry/event-schema.d.ts +47 -0
- package/dist/telemetry/event-schema.d.ts.map +1 -0
- package/dist/telemetry/event-schema.js +64 -0
- package/dist/telemetry/event-schema.js.map +1 -0
- package/dist/telemetry/index.d.ts +6 -0
- package/dist/telemetry/index.d.ts.map +1 -0
- package/dist/telemetry/index.js +6 -0
- package/dist/telemetry/index.js.map +1 -0
- package/dist/telemetry/machine-id.d.ts +7 -0
- package/dist/telemetry/machine-id.d.ts.map +1 -0
- package/dist/telemetry/machine-id.js +30 -0
- package/dist/telemetry/machine-id.js.map +1 -0
- package/dist/telemetry/pipeline.d.ts +17 -0
- package/dist/telemetry/pipeline.d.ts.map +1 -0
- package/dist/telemetry/pipeline.js +33 -0
- package/dist/telemetry/pipeline.js.map +1 -0
- package/dist/telemetry/sanitizer.d.ts +9 -0
- package/dist/telemetry/sanitizer.d.ts.map +1 -0
- package/dist/telemetry/sanitizer.js +87 -0
- package/dist/telemetry/sanitizer.js.map +1 -0
- package/dist/telemetry/sinks.d.ts +22 -0
- package/dist/telemetry/sinks.d.ts.map +1 -0
- package/dist/telemetry/sinks.js +40 -0
- package/dist/telemetry/sinks.js.map +1 -0
- package/dist/tools/types.d.ts +7 -0
- package/dist/tools/types.d.ts.map +1 -0
- package/dist/tools/types.js +2 -0
- package/dist/tools/types.js.map +1 -0
- package/package.json +89 -0
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
import Bottleneck from "bottleneck";
|
|
2
|
+
import pLimit from "p-limit";
|
|
3
|
+
/** Cap concurrent query invocations against a single org connection. */
|
|
4
|
+
export const queryLimit = pLimit(5);
|
|
5
|
+
/**
|
|
6
|
+
* Hard upper bound on a single jsforce call. Used to wrap metadata.list /
|
|
7
|
+
* metadata.read calls in extractors so a Salesforce-side stall can't park
|
|
8
|
+
* the extractor (and therefore the sliding-window slot) indefinitely.
|
|
9
|
+
* Rejects with a descriptive error after `ms`; the failSoft wrapper one
|
|
10
|
+
* level up surfaces it as a skip. The underlying jsforce HTTP request may
|
|
11
|
+
* continue until libuv tears it down — we just stop waiting.
|
|
12
|
+
*/
|
|
13
|
+
export function withTimeout(p, ms, label) {
|
|
14
|
+
return new Promise((resolve, reject) => {
|
|
15
|
+
const t = setTimeout(() => reject(new Error(`${label} timeout (${ms}ms)`)), ms);
|
|
16
|
+
p.then((v) => {
|
|
17
|
+
clearTimeout(t);
|
|
18
|
+
resolve(v);
|
|
19
|
+
}, (e) => {
|
|
20
|
+
clearTimeout(t);
|
|
21
|
+
reject(e);
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/** Per-call ceilings — kept here so all extractors apply them consistently.
|
|
26
|
+
* Read timeout raised 45s -> 120s. A single metadata.read of a heavy
|
|
27
|
+
* Profile / Layout / Workflow legitimately takes 60-90s on production orgs;
|
|
28
|
+
* 45s was clipping perfectly-healthy reads. When a batch genuinely needs
|
|
29
|
+
* longer than 120s, the streaming-split helper below recursively halves
|
|
30
|
+
* the batch on timeout, so we still recover most records instead of
|
|
31
|
+
* dropping the whole batch. */
|
|
32
|
+
export const METADATA_LIST_TIMEOUT_MS = 30_000;
|
|
33
|
+
export const METADATA_READ_TIMEOUT_MS = 120_000;
|
|
34
|
+
/**
|
|
35
|
+
* Resilient metadata.read for a batch of items, with adaptive splitting on
|
|
36
|
+
* timeout. On a clean call, returns whatever Salesforce gave us (as an
|
|
37
|
+
* array). On any error, if the batch has >1 item, splits in half and
|
|
38
|
+
* retries each half in parallel — concatenating in original order so the
|
|
39
|
+
* caller can still index records against the original slice. A single
|
|
40
|
+
* item that times out is the genuine "this record cannot be ingested"
|
|
41
|
+
* case; we return `null` for it so the caller can record the skip
|
|
42
|
+
* without polluting the success path.
|
|
43
|
+
*/
|
|
44
|
+
export async function readMetadataBatchAdaptive(conn, type, items) {
|
|
45
|
+
if (items.length === 0)
|
|
46
|
+
return [];
|
|
47
|
+
try {
|
|
48
|
+
const raw = await scheduleMetadata(() => withTimeout(conn.metadata.read(type, items.map((i) => i.fullName)), METADATA_READ_TIMEOUT_MS, `metadata.read ${type}`));
|
|
49
|
+
const arr = Array.isArray(raw) ? raw : raw ? [raw] : [];
|
|
50
|
+
const out = [];
|
|
51
|
+
for (let i = 0; i < items.length; i += 1)
|
|
52
|
+
out.push(arr[i] ?? null);
|
|
53
|
+
return out;
|
|
54
|
+
}
|
|
55
|
+
catch (e) {
|
|
56
|
+
// Split only on NON-timeout errors. A timeout means Salesforce is slow
|
|
57
|
+
// per item, not that one bad record poisoned the batch — retrying with
|
|
58
|
+
// smaller batches each at the full timeout budget multiplies wall-clock
|
|
59
|
+
// time (e.g. a 10-item managed-package timeout cascade can balloon to
|
|
60
|
+
// 10×120s = 20 minutes before failing). Take the cleanest exit: skip
|
|
61
|
+
// the batch, emit nulls so the caller's indexing stays aligned.
|
|
62
|
+
const msg = e?.message ?? "";
|
|
63
|
+
const isTimeout = msg.includes("timeout (");
|
|
64
|
+
if (isTimeout || items.length === 1) {
|
|
65
|
+
return items.map(() => null);
|
|
66
|
+
}
|
|
67
|
+
const mid = Math.ceil(items.length / 2);
|
|
68
|
+
const [left, right] = await Promise.all([
|
|
69
|
+
readMetadataBatchAdaptive(conn, type, items.slice(0, mid)),
|
|
70
|
+
readMetadataBatchAdaptive(conn, type, items.slice(mid)),
|
|
71
|
+
]);
|
|
72
|
+
return [...left, ...right];
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
function parseRetryAfter(err) {
|
|
76
|
+
if (!err || typeof err !== "object")
|
|
77
|
+
return null;
|
|
78
|
+
const e = err;
|
|
79
|
+
const direct = e.retryAfter;
|
|
80
|
+
if (typeof direct === "number" && Number.isFinite(direct))
|
|
81
|
+
return direct;
|
|
82
|
+
if (typeof direct === "string") {
|
|
83
|
+
const n = Number(direct);
|
|
84
|
+
if (Number.isFinite(n))
|
|
85
|
+
return n;
|
|
86
|
+
}
|
|
87
|
+
const hdr = e.headers?.["retry-after"] ?? e.headers?.["Retry-After"];
|
|
88
|
+
if (hdr) {
|
|
89
|
+
const n = Number(hdr);
|
|
90
|
+
if (Number.isFinite(n))
|
|
91
|
+
return n;
|
|
92
|
+
}
|
|
93
|
+
return null;
|
|
94
|
+
}
|
|
95
|
+
function attachRetryHandler(pool) {
|
|
96
|
+
pool.on("failed", (err, jobInfo) => {
|
|
97
|
+
// Only retry when Salesforce explicitly told us to wait, and only ONCE.
|
|
98
|
+
// Previously: defaulted REQUEST_LIMIT_EXCEEDED to a 30s wait and retried
|
|
99
|
+
// up to 3×. On a daily-limit-saturated org that cascade tied up pool
|
|
100
|
+
// slots for 90+s of dead time per failed call, starving every other
|
|
101
|
+
// source. If we can't infer a real retry-after, fail fast — failSoft
|
|
102
|
+
// surfaces a skip and the run keeps moving.
|
|
103
|
+
if (jobInfo.retryCount >= 1)
|
|
104
|
+
return null;
|
|
105
|
+
const wait = parseRetryAfter(err);
|
|
106
|
+
if (wait != null)
|
|
107
|
+
return wait * 1000;
|
|
108
|
+
return null;
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
/** Default concurrency. Metadata raised 5 -> 10 — under the sliding-window
|
|
112
|
+
* source merger, security + flow + integration + several generic types all
|
|
113
|
+
* schedule into this pool simultaneously. 5 slots backlogged the queue past
|
|
114
|
+
* failSoft's 180s inactivity ceiling, causing whole sources to be killed
|
|
115
|
+
* before their first batch ran. 10 stays well inside Salesforce's tolerance
|
|
116
|
+
* for concurrent Metadata API reads and drains the queue ~2× faster. */
|
|
117
|
+
export const DEFAULT_POOL_CONCURRENCY = {
|
|
118
|
+
tooling: 5,
|
|
119
|
+
metadata: 10,
|
|
120
|
+
data: 10,
|
|
121
|
+
};
|
|
122
|
+
function parsePositiveInt(raw) {
|
|
123
|
+
if (raw == null)
|
|
124
|
+
return undefined;
|
|
125
|
+
const n = Number.parseInt(raw, 10);
|
|
126
|
+
if (!Number.isFinite(n) || n <= 0)
|
|
127
|
+
return undefined;
|
|
128
|
+
return n;
|
|
129
|
+
}
|
|
130
|
+
/** Read `SFGRAPH_{TOOLING,METADATA,DATA}_POOL` env vars. Invalid / unset
|
|
131
|
+
* entries leave the corresponding pool at its default. */
|
|
132
|
+
function envOverrides() {
|
|
133
|
+
const out = {};
|
|
134
|
+
const t = parsePositiveInt(process.env.SFGRAPH_TOOLING_POOL);
|
|
135
|
+
const m = parsePositiveInt(process.env.SFGRAPH_METADATA_POOL);
|
|
136
|
+
const d = parsePositiveInt(process.env.SFGRAPH_DATA_POOL);
|
|
137
|
+
if (t !== undefined)
|
|
138
|
+
out.tooling = t;
|
|
139
|
+
if (m !== undefined)
|
|
140
|
+
out.metadata = m;
|
|
141
|
+
if (d !== undefined)
|
|
142
|
+
out.data = d;
|
|
143
|
+
return out;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Build a fresh independent {@link RateLimitPools} set. Each pool has its own
|
|
147
|
+
* Bottleneck reservoir, so two pool sets do not contend for budget.
|
|
148
|
+
*
|
|
149
|
+
* Concurrency resolution order: explicit `overrides` arg > `SFGRAPH_*_POOL`
|
|
150
|
+
* env vars > {@link DEFAULT_POOL_CONCURRENCY}.
|
|
151
|
+
*/
|
|
152
|
+
export function createRateLimitPools(overrides = {}) {
|
|
153
|
+
const env = envOverrides();
|
|
154
|
+
const toolingConc = overrides.tooling ?? env.tooling ?? DEFAULT_POOL_CONCURRENCY.tooling;
|
|
155
|
+
const metadataConc = overrides.metadata ?? env.metadata ?? DEFAULT_POOL_CONCURRENCY.metadata;
|
|
156
|
+
const dataConc = overrides.data ?? env.data ?? DEFAULT_POOL_CONCURRENCY.data;
|
|
157
|
+
// Pool sizing rule: reservoir refresh-rate must exceed maxConcurrent ×
|
|
158
|
+
// (1 / typical_call_latency_sec). Previous values capped the metadata
|
|
159
|
+
// pool at 5 req/sec (reservoir 50/10s) AND added a 100ms minTime — well
|
|
160
|
+
// below what maxConcurrent: 10 actually wanted to do for fast list calls.
|
|
161
|
+
// Result: pool throughput collapsed for entire 10s windows while reservoir
|
|
162
|
+
// refilled, manifesting as a "wedge" where 12 fan-out sources sat idle.
|
|
163
|
+
// 200/10s = 20 req/sec aligns the reservoir with maxConcurrent + typical
|
|
164
|
+
// 0.5–2s call latency. minTime: 0 lets maxConcurrent be the sole
|
|
165
|
+
// parallelism bound (it was the binding constraint anyway).
|
|
166
|
+
const toolingPool = new Bottleneck({
|
|
167
|
+
maxConcurrent: toolingConc,
|
|
168
|
+
minTime: 0,
|
|
169
|
+
reservoir: 200,
|
|
170
|
+
reservoirRefreshAmount: 200,
|
|
171
|
+
reservoirRefreshInterval: 10_000,
|
|
172
|
+
});
|
|
173
|
+
const metadataPool = new Bottleneck({
|
|
174
|
+
maxConcurrent: metadataConc,
|
|
175
|
+
minTime: 0,
|
|
176
|
+
reservoir: 200,
|
|
177
|
+
reservoirRefreshAmount: 200,
|
|
178
|
+
reservoirRefreshInterval: 10_000,
|
|
179
|
+
});
|
|
180
|
+
const dataPool = new Bottleneck({
|
|
181
|
+
maxConcurrent: dataConc,
|
|
182
|
+
minTime: 0,
|
|
183
|
+
reservoir: 200,
|
|
184
|
+
reservoirRefreshAmount: 200,
|
|
185
|
+
reservoirRefreshInterval: 10_000,
|
|
186
|
+
});
|
|
187
|
+
for (const p of [toolingPool, metadataPool, dataPool])
|
|
188
|
+
attachRetryHandler(p);
|
|
189
|
+
return {
|
|
190
|
+
toolingPool,
|
|
191
|
+
metadataPool,
|
|
192
|
+
dataPool,
|
|
193
|
+
scheduleQuery(fn) {
|
|
194
|
+
return toolingPool.schedule(() => queryLimit(fn));
|
|
195
|
+
},
|
|
196
|
+
scheduleMetadata(fn) {
|
|
197
|
+
return metadataPool.schedule(fn);
|
|
198
|
+
},
|
|
199
|
+
scheduleData(fn) {
|
|
200
|
+
return dataPool.schedule(fn);
|
|
201
|
+
},
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
// Process-level default set. Existing module-level singletons continue to work.
|
|
205
|
+
const defaultPools = createRateLimitPools();
|
|
206
|
+
export const toolingPool = defaultPools.toolingPool;
|
|
207
|
+
export const metadataPool = defaultPools.metadataPool;
|
|
208
|
+
export const dataPool = defaultPools.dataPool;
|
|
209
|
+
/**
|
|
210
|
+
* Back-compat alias. The original `limiter` export is preserved so callers
|
|
211
|
+
* that haven't migrated to a specific pool continue to work; it points at
|
|
212
|
+
* the tooling pool (the closest match to the previous single-pool defaults).
|
|
213
|
+
*/
|
|
214
|
+
export const limiter = toolingPool;
|
|
215
|
+
/** Helper that runs a single SOQL/Tooling callable through both gates. */
|
|
216
|
+
export function scheduleQuery(fn) {
|
|
217
|
+
return defaultPools.scheduleQuery(fn);
|
|
218
|
+
}
|
|
219
|
+
/** Schedule a Metadata API call (list/read/retrieve/deploy). */
|
|
220
|
+
export function scheduleMetadata(fn) {
|
|
221
|
+
return defaultPools.scheduleMetadata(fn);
|
|
222
|
+
}
|
|
223
|
+
/** Schedule a SObject SOQL / Bulk query (Vlocity, CMDT, generic records). */
|
|
224
|
+
export function scheduleData(fn) {
|
|
225
|
+
return defaultPools.scheduleData(fn);
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Mutate the *default* (process-level) pools' concurrency caps at runtime.
|
|
229
|
+
* Used by the CLI when `--tooling-pool` / `--metadata-pool` / `--data-pool`
|
|
230
|
+
* flags are passed — by the time those flags are parsed, the singletons have
|
|
231
|
+
* already been instantiated, so we can't influence them through the
|
|
232
|
+
* constructor. Bottleneck supports live updates via `updateSettings`.
|
|
233
|
+
*
|
|
234
|
+
* Returns the concurrency caps actually applied (after merging defaults +
|
|
235
|
+
* env vars + overrides), so callers can log what the user got.
|
|
236
|
+
*/
|
|
237
|
+
export async function configureDefaultPools(overrides = {}) {
|
|
238
|
+
const env = envOverrides();
|
|
239
|
+
const tooling = overrides.tooling ?? env.tooling ?? DEFAULT_POOL_CONCURRENCY.tooling;
|
|
240
|
+
const metadata = overrides.metadata ?? env.metadata ?? DEFAULT_POOL_CONCURRENCY.metadata;
|
|
241
|
+
const data = overrides.data ?? env.data ?? DEFAULT_POOL_CONCURRENCY.data;
|
|
242
|
+
// Bottleneck.updateSettings returns a Promise — must await so subsequent
|
|
243
|
+
// schedules see the new cap.
|
|
244
|
+
await Promise.all([
|
|
245
|
+
toolingPool.updateSettings({ maxConcurrent: tooling }),
|
|
246
|
+
metadataPool.updateSettings({ maxConcurrent: metadata }),
|
|
247
|
+
dataPool.updateSettings({ maxConcurrent: data }),
|
|
248
|
+
]);
|
|
249
|
+
return { tooling, metadata, data };
|
|
250
|
+
}
|
|
251
|
+
//# sourceMappingURL=rate-limit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rate-limit.js","sourceRoot":"","sources":["../../../src/extractors/live-org/rate-limit.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,SAAS,CAAC;AAE7B,wEAAwE;AACxE,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AAEpC;;;;;;;GAOG;AACH,MAAM,UAAU,WAAW,CAAI,CAAa,EAAE,EAAU,EAAE,KAAa;IACrE,OAAO,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACxC,MAAM,CAAC,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,GAAG,KAAK,aAAa,EAAE,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAChF,CAAC,CAAC,IAAI,CACJ,CAAC,CAAC,EAAE,EAAE;YACJ,YAAY,CAAC,CAAC,CAAC,CAAC;YAChB,OAAO,CAAC,CAAC,CAAC,CAAC;QACb,CAAC,EACD,CAAC,CAAC,EAAE,EAAE;YACJ,YAAY,CAAC,CAAC,CAAC,CAAC;YAChB,MAAM,CAAC,CAAC,CAAC,CAAC;QACZ,CAAC,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED;;;;;;gCAMgC;AAChC,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAAC;AAC/C,MAAM,CAAC,MAAM,wBAAwB,GAAG,OAAO,CAAC;AAEhD;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAC7C,IAAiF,EACjF,IAAY,EACZ,KAAc;IAEd,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAClC,IAAI,CAAC;QACH,MAAM,GAAG,G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AAY,EAAE,CAAC;IAC3B,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,IAAI,GAAG,CAAC,OAAO,IAAI,wBAAwB,CAAC,OAAO,CAAC;IACrF,MAAM,QAAQ,GAAG,SAAS,CAAC,QAAQ,IAAI,GAAG,CAAC,QAAQ,IAAI,wBAAwB,CAAC,QAAQ,CAAC;IACzF,MAAM,IAAI,GAAG,SAAS,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,IAAI,wBAAwB,CAAC,IAAI,CAAC;IACzE,yEAAyE;IACzE,6BAA6B;IAC7B,MAAM,OAAO,CAAC,GAAG,CAAC;QAChB,WAAW,CAAC,cAAc,CAAC,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC;QACtD,YAAY,CAAC,cAAc,CAAC,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC;QACxD,QAAQ,CAAC,cAAc,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;KACjD,CAAC,CAAC;IACH,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-only-proxy.d.ts","sourceRoot":"","sources":["../../../src/extractors/live-org/read-only-proxy.ts"],"names":[],"mappings":"AAmQA,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CA0CnE"}
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import { ReadOnlyViolationError } from "@ryanstark24/sfgraph-shared";
|
|
2
|
+
const SOBJECT_WRITE_METHODS = new Set([
|
|
3
|
+
"create",
|
|
4
|
+
"insert",
|
|
5
|
+
"update",
|
|
6
|
+
"upsert",
|
|
7
|
+
"delete",
|
|
8
|
+
"del",
|
|
9
|
+
"destroy",
|
|
10
|
+
"createBulk",
|
|
11
|
+
"updateBulk",
|
|
12
|
+
"upsertBulk",
|
|
13
|
+
"deleteBulk",
|
|
14
|
+
]);
|
|
15
|
+
const METADATA_WRITE_METHODS = new Set([
|
|
16
|
+
"create",
|
|
17
|
+
"update",
|
|
18
|
+
"upsert",
|
|
19
|
+
"delete",
|
|
20
|
+
"deploy",
|
|
21
|
+
"rename",
|
|
22
|
+
]);
|
|
23
|
+
/**
|
|
24
|
+
* Tooling API has its own top-level write methods in addition to
|
|
25
|
+
* tooling.sobject(...).create/update/etc. Block them all. Includes
|
|
26
|
+
* 'executeAnonymous' because anonymous Apex can mutate data even though
|
|
27
|
+
* the call itself is technically a "query".
|
|
28
|
+
*/
|
|
29
|
+
const TOOLING_TOP_LEVEL_WRITE_METHODS = new Set([
|
|
30
|
+
"create",
|
|
31
|
+
"insert",
|
|
32
|
+
"update",
|
|
33
|
+
"upsert",
|
|
34
|
+
"delete",
|
|
35
|
+
"del",
|
|
36
|
+
"destroy",
|
|
37
|
+
"deploy",
|
|
38
|
+
"rename",
|
|
39
|
+
"executeAnonymous",
|
|
40
|
+
"runTests",
|
|
41
|
+
"runTestsAsynchronous",
|
|
42
|
+
"runTestsSynchronous",
|
|
43
|
+
"createAsync",
|
|
44
|
+
"updateAsync",
|
|
45
|
+
"deleteAsync",
|
|
46
|
+
"deployAsync",
|
|
47
|
+
"requestPost",
|
|
48
|
+
"requestPut",
|
|
49
|
+
"requestPatch",
|
|
50
|
+
"requestDelete",
|
|
51
|
+
]);
|
|
52
|
+
const ROOT_WRITE_METHODS = new Set([
|
|
53
|
+
"create",
|
|
54
|
+
"update",
|
|
55
|
+
"upsert",
|
|
56
|
+
"delete",
|
|
57
|
+
"del",
|
|
58
|
+
"destroy",
|
|
59
|
+
"recreate",
|
|
60
|
+
"requestPost",
|
|
61
|
+
"requestPut",
|
|
62
|
+
"requestPatch",
|
|
63
|
+
"requestDelete",
|
|
64
|
+
]);
|
|
65
|
+
const SAFE_HTTP_METHODS = new Set(["GET", "HEAD"]);
|
|
66
|
+
/**
|
|
67
|
+
* Union of every known write-shaped method name across all jsforce surfaces.
|
|
68
|
+
* Used by `wrapGenericSurface` to default-deny unknown surfaces (soap, apex,
|
|
69
|
+
* chatter, etc.) — anything callable named `create`, `delete`, `deploy`,
|
|
70
|
+
* `upsert`, ... is blocked even when the surface itself isn't explicitly
|
|
71
|
+
* modelled. Adding new write surfaces to jsforce won't silently bypass the
|
|
72
|
+
* proxy this way.
|
|
73
|
+
*/
|
|
74
|
+
const ANY_WRITE_METHOD = new Set([
|
|
75
|
+
...SOBJECT_WRITE_METHODS,
|
|
76
|
+
...METADATA_WRITE_METHODS,
|
|
77
|
+
...TOOLING_TOP_LEVEL_WRITE_METHODS,
|
|
78
|
+
...ROOT_WRITE_METHODS,
|
|
79
|
+
]);
|
|
80
|
+
/**
|
|
81
|
+
* Names of "make me a job/batch" entry points that take an `operation` field.
|
|
82
|
+
* The wrapper inspects the operation and blocks anything not query-shaped.
|
|
83
|
+
*/
|
|
84
|
+
const JOB_CREATOR_METHODS = new Set(["createJob"]);
|
|
85
|
+
function violation(op) {
|
|
86
|
+
throw new ReadOnlyViolationError(`read-only Salesforce connection: '${op}' is blocked at runtime`);
|
|
87
|
+
}
|
|
88
|
+
function blockingFn(name) {
|
|
89
|
+
return () => violation(name);
|
|
90
|
+
}
|
|
91
|
+
function wrapSObject(target, label) {
|
|
92
|
+
return new Proxy(target, {
|
|
93
|
+
get(t, prop, receiver) {
|
|
94
|
+
if (typeof prop === "string" && SOBJECT_WRITE_METHODS.has(prop)) {
|
|
95
|
+
return blockingFn(`${label}.${prop}`);
|
|
96
|
+
}
|
|
97
|
+
const val = Reflect.get(t, prop, receiver);
|
|
98
|
+
return typeof val === "function" ? val.bind(t) : val;
|
|
99
|
+
},
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
function wrapMetadata(target) {
|
|
103
|
+
return new Proxy(target, {
|
|
104
|
+
get(t, prop, receiver) {
|
|
105
|
+
if (typeof prop === "string" && METADATA_WRITE_METHODS.has(prop)) {
|
|
106
|
+
return blockingFn(`metadata.${String(prop)}`);
|
|
107
|
+
}
|
|
108
|
+
const val = Reflect.get(t, prop, receiver);
|
|
109
|
+
return typeof val === "function" ? val.bind(t) : val;
|
|
110
|
+
},
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
function isReadishOperation(op) {
|
|
114
|
+
const s = String(op ?? "").toLowerCase();
|
|
115
|
+
return s === "query" || s === "queryall";
|
|
116
|
+
}
|
|
117
|
+
function wrapTooling(target) {
|
|
118
|
+
return new Proxy(target, {
|
|
119
|
+
get(t, prop, receiver) {
|
|
120
|
+
// P0: never expose the back-reference to the raw connection
|
|
121
|
+
// (jsforce stashes the parent conn on `_conn`). Reachable raw it
|
|
122
|
+
// would bypass every check above.
|
|
123
|
+
if (typeof prop === "string" && prop.startsWith("_"))
|
|
124
|
+
return undefined;
|
|
125
|
+
if (prop === "sobject") {
|
|
126
|
+
const original = Reflect.get(t, prop, receiver);
|
|
127
|
+
if (typeof original !== "function")
|
|
128
|
+
return original;
|
|
129
|
+
return (name) => wrapSObject(original.call(t, name), `tooling.sobject(${name})`);
|
|
130
|
+
}
|
|
131
|
+
// P0 fix: previously only tooling.sobject was wrapped, so callers could
|
|
132
|
+
// hit conn.tooling.delete(...), conn.tooling.executeAnonymous(...),
|
|
133
|
+
// conn.tooling.requestPost(...) etc. directly. Block every top-level
|
|
134
|
+
// tooling write method.
|
|
135
|
+
if (typeof prop === "string" && TOOLING_TOP_LEVEL_WRITE_METHODS.has(prop)) {
|
|
136
|
+
return blockingFn(`tooling.${String(prop)}`);
|
|
137
|
+
}
|
|
138
|
+
// Block conn.tooling.request(...) when method is not GET/HEAD, mirroring
|
|
139
|
+
// the root-level request gate.
|
|
140
|
+
if (prop === "request") {
|
|
141
|
+
const original = Reflect.get(t, prop, receiver);
|
|
142
|
+
if (typeof original !== "function")
|
|
143
|
+
return original;
|
|
144
|
+
return (...args) => {
|
|
145
|
+
const first = args[0];
|
|
146
|
+
if (typeof first === "object" && first !== null) {
|
|
147
|
+
const methodVal = first.method;
|
|
148
|
+
const method = typeof methodVal === "string" ? methodVal.toUpperCase() : "GET";
|
|
149
|
+
if (!SAFE_HTTP_METHODS.has(method))
|
|
150
|
+
violation(`tooling.request(${method})`);
|
|
151
|
+
}
|
|
152
|
+
if (typeof first === "string") {
|
|
153
|
+
const method = typeof args[1] === "string" ? args[1].toUpperCase() : "GET";
|
|
154
|
+
if (!SAFE_HTTP_METHODS.has(method))
|
|
155
|
+
violation(`tooling.request(${method})`);
|
|
156
|
+
}
|
|
157
|
+
return original.call(t, ...args);
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
const val = Reflect.get(t, prop, receiver);
|
|
161
|
+
return typeof val === "function" ? val.bind(t) : val;
|
|
162
|
+
},
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
function wrapBulk(target) {
|
|
166
|
+
return new Proxy(target, {
|
|
167
|
+
get(t, prop, receiver) {
|
|
168
|
+
if (typeof prop === "string" && prop.startsWith("_"))
|
|
169
|
+
return undefined;
|
|
170
|
+
if (prop === "load") {
|
|
171
|
+
return (sobjectName, operation, ...rest) => {
|
|
172
|
+
if (!isReadishOperation(operation)) {
|
|
173
|
+
violation(`bulk.load(${sobjectName}, ${operation})`);
|
|
174
|
+
}
|
|
175
|
+
const orig = Reflect.get(t, prop, receiver);
|
|
176
|
+
return orig.call(t, sobjectName, operation, ...rest);
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
// P0: jsforce also exposes bulk.createJob({ operation }) as a
|
|
180
|
+
// lower-level entry point. Mirror the read-only gate.
|
|
181
|
+
if (typeof prop === "string" && JOB_CREATOR_METHODS.has(prop)) {
|
|
182
|
+
const original = Reflect.get(t, prop, receiver);
|
|
183
|
+
if (typeof original !== "function")
|
|
184
|
+
return original;
|
|
185
|
+
return (jobOpts, ...rest) => {
|
|
186
|
+
const op = jobOpts?.operation;
|
|
187
|
+
if (!isReadishOperation(op))
|
|
188
|
+
violation(`bulk.${String(prop)}(${String(op)})`);
|
|
189
|
+
return original.call(t, jobOpts, ...rest);
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
// P0: bulk.job(jobId).batch(...) chain. Wrap any returned job so its
|
|
193
|
+
// create/update/delete methods are blocked. Read methods (`check`,
|
|
194
|
+
// `list`, `retrieve`) pass through. We only know to block writes here
|
|
195
|
+
// because the chain is too dynamic to enumerate exhaustively.
|
|
196
|
+
if (prop === "job") {
|
|
197
|
+
const original = Reflect.get(t, prop, receiver);
|
|
198
|
+
if (typeof original !== "function")
|
|
199
|
+
return original;
|
|
200
|
+
return (...args) => {
|
|
201
|
+
const job = original.call(t, ...args);
|
|
202
|
+
return wrapGenericSurface(job, "bulk.job(...)");
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
const val = Reflect.get(t, prop, receiver);
|
|
206
|
+
return typeof val === "function" ? val.bind(t) : val;
|
|
207
|
+
},
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Last-line defence for surfaces we haven't modelled explicitly (soap, apex,
|
|
212
|
+
* chatter, analytics, bulk2, ...). Default-denies any property name from the
|
|
213
|
+
* union write set and hides `_`-prefixed internals.
|
|
214
|
+
*/
|
|
215
|
+
function wrapGenericSurface(target, label) {
|
|
216
|
+
if (target === null || typeof target !== "object")
|
|
217
|
+
return target;
|
|
218
|
+
return new Proxy(target, {
|
|
219
|
+
get(t, prop, receiver) {
|
|
220
|
+
if (typeof prop === "string") {
|
|
221
|
+
if (prop.startsWith("_"))
|
|
222
|
+
return undefined;
|
|
223
|
+
if (ANY_WRITE_METHOD.has(prop)) {
|
|
224
|
+
return blockingFn(`${label}.${prop}`);
|
|
225
|
+
}
|
|
226
|
+
if (JOB_CREATOR_METHODS.has(prop)) {
|
|
227
|
+
const original = Reflect.get(t, prop, receiver);
|
|
228
|
+
if (typeof original !== "function")
|
|
229
|
+
return original;
|
|
230
|
+
return (jobOpts, ...rest) => {
|
|
231
|
+
const op = jobOpts?.operation;
|
|
232
|
+
if (!isReadishOperation(op)) {
|
|
233
|
+
violation(`${label}.${String(prop)}(${String(op)})`);
|
|
234
|
+
}
|
|
235
|
+
return original.call(t, jobOpts, ...rest);
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
const val = Reflect.get(t, prop, receiver);
|
|
240
|
+
return typeof val === "function" ? val.bind(t) : val;
|
|
241
|
+
},
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
function wrapRequest(target, originalRequest) {
|
|
245
|
+
return (info, ...rest) => {
|
|
246
|
+
const method = typeof info === "string" ? "GET" : String(info?.method ?? "GET").toUpperCase();
|
|
247
|
+
if (!SAFE_HTTP_METHODS.has(method)) {
|
|
248
|
+
violation(`request(${method})`);
|
|
249
|
+
}
|
|
250
|
+
return originalRequest.call(target, info, ...rest);
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
export function wrapConnectionReadOnly(conn) {
|
|
254
|
+
return new Proxy(conn, {
|
|
255
|
+
get(target, prop, receiver) {
|
|
256
|
+
// P0: hide jsforce internals (_conn, _logger, etc.) so callers can't
|
|
257
|
+
// reach the raw connection and bypass the proxy.
|
|
258
|
+
if (typeof prop === "string" && prop.startsWith("_"))
|
|
259
|
+
return undefined;
|
|
260
|
+
if (typeof prop === "string" && ROOT_WRITE_METHODS.has(prop)) {
|
|
261
|
+
return blockingFn(prop);
|
|
262
|
+
}
|
|
263
|
+
if (prop === "sobject") {
|
|
264
|
+
const original = Reflect.get(target, prop, receiver);
|
|
265
|
+
if (typeof original !== "function")
|
|
266
|
+
return original;
|
|
267
|
+
return (name) => wrapSObject(original.call(target, name), `sobject(${name})`);
|
|
268
|
+
}
|
|
269
|
+
if (prop === "tooling") {
|
|
270
|
+
const t = Reflect.get(target, prop, receiver);
|
|
271
|
+
return t ? wrapTooling(t) : t;
|
|
272
|
+
}
|
|
273
|
+
if (prop === "metadata") {
|
|
274
|
+
const m = Reflect.get(target, prop, receiver);
|
|
275
|
+
return m ? wrapMetadata(m) : m;
|
|
276
|
+
}
|
|
277
|
+
if (prop === "bulk") {
|
|
278
|
+
const b = Reflect.get(target, prop, receiver);
|
|
279
|
+
return b ? wrapBulk(b) : b;
|
|
280
|
+
}
|
|
281
|
+
if (prop === "request") {
|
|
282
|
+
const r = Reflect.get(target, prop, receiver);
|
|
283
|
+
if (typeof r !== "function")
|
|
284
|
+
return r;
|
|
285
|
+
return wrapRequest(target, r);
|
|
286
|
+
}
|
|
287
|
+
// P0: any other API surface (soap, bulk2, apex, chatter, analytics,
|
|
288
|
+
// streaming, ...) goes through the generic default-deny wrapper. This
|
|
289
|
+
// prevents `conn.soap.create({})`, `conn.bulk2.createJob({operation:'insert'})`,
|
|
290
|
+
// `conn.apex.post(...)`, etc. from sneaking past the explicit allowlist.
|
|
291
|
+
const val = Reflect.get(target, prop, receiver);
|
|
292
|
+
if (val !== null && typeof val === "object") {
|
|
293
|
+
return wrapGenericSurface(val, String(prop));
|
|
294
|
+
}
|
|
295
|
+
return typeof val === "function" ? val.bind(target) : val;
|
|
296
|
+
},
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
//# sourceMappingURL=read-only-proxy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"read-only-proxy.js","sourceRoot":"","sources":["../../../src/extractors/live-org/read-only-proxy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,MAAM,qBAAqB,GAAG,IAAI,GAAG,CAAC;IACpC,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,KAAK;IACL,SAAS;IACT,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,YAAY;CACb,CAAC,CAAC;AAEH,MAAM,sBAAsB,GAAG,IAAI,GAAG,CAAC;IACrC,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;CACT,CAAC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,+BAA+B,G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10 @@
|
|
|
1
|
+
/** Phase 6 placeholder — emits nothing today. */
|
|
2
|
+
export function iterReports(_conn) {
|
|
3
|
+
return emptyAsyncIterable();
|
|
4
|
+
}
|
|
5
|
+
async function* emptyAsyncIterable() {
|
|
6
|
+
// intentional: phase-6 stub
|
|
7
|
+
if (false)
|
|
8
|
+
yield undefined;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=reports.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reports.js","sourceRoot":"","sources":["../../../src/extractors/live-org/reports.ts"],"names":[],"mappings":"AAEA,iDAAiD;AACjD,MAAM,UAAU,WAAW,CAAC,KAAU;IACpC,OAAO,kBAAkB,EAAE,CAAC;AAC9B,CAAC;AAED,KAAK,SAAS,CAAC,CAAC,kBAAkB;IAChC,4BAA4B;IAC5B,IAAI,KAAgB;QAAE,MAAM,SAAiC,CAAC;AAChE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { OrgId } from "@ryanstark24/sfgraph-shared";
|
|
2
|
+
import type { MemberRef } from "../interfaces/metadata-source.js";
|
|
3
|
+
/**
|
|
4
|
+
* Iterate over Salesforce Tooling SourceMember rows modified after `sinceIso`.
|
|
5
|
+
* Deletions surface with `obsolete: true` and an empty source URI suffix.
|
|
6
|
+
*/
|
|
7
|
+
export declare function iterChanges(conn: any, _orgId: OrgId, sinceIso: string): AsyncIterable<MemberRef>;
|
|
8
|
+
//# sourceMappingURL=source-member.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-member.d.ts","sourceRoot":"","sources":["../../../src/extractors/live-org/source-member.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AAEzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AA2BlE;;;GAGG;AACH,wBAAuB,WAAW,CAChC,IAAI,EAAE,GAAG,EACT,MAAM,EAAE,KAAK,EACb,QAAQ,EAAE,MAAM,GACf,aAAa,CAAC,SAAS,CAAC,CAyB1B"}
|