package bootstrap

import (
	connectorreaders "github.com/nexuscrm/db/pkg/connectorreaders"
	connector "github.com/pingcap-inc/nexuscrm-contract/pkg/connector"
)

// ResolveQuery carries the filter parameters for a direction-aware connector
// field mapping read. Relocated verbatim to the contract package (stdlib-only).
type ResolveQuery = connector.ResolveQuery

// ResolveFieldMapping returns active connector field mapping rows that match
// the caller's direction perspective.
//
// The reader LOGIC was relocated to the neutral sibling
// github.com/nexuscrm/db/pkg/connectorreaders (PR2 Step 1); this thin func-value
// alias keeps existing backend callers (ConnectorFieldMappingReaderImpl, the CP
// seam wiring) compiling unchanged. Behavior is byte-for-byte identical.
var ResolveFieldMapping = connectorreaders.ResolveFieldMapping

// ResolvePackConnectorFieldMapping returns the pack-authored connector mapping
// rows for trusted outbound authority. Unlike ResolveFieldMapping, this reader
// intentionally does not use effective/admin-customized precedence: trusted
// PushToConnector execution must consume the source-backed pack declaration
// (Source=<owner>, IsCustomized=0) or fail closed at the caller.
//
// The reader LOGIC was relocated to connectorreaders (PR2 Step 1); this thin
// func-value alias keeps existing backend callers compiling unchanged.
var ResolvePackConnectorFieldMapping = connectorreaders.ResolvePackConnectorFieldMapping
