shopify_draft_proxy/proxy/privacy

Privacy domain port.

dataSaleOptOut is privacy-scoped in the Admin API, but its observable downstream effect lives on Customer.dataSaleOptOut. Keep the root under privacy dispatch while staging the read effect against customer state.

Types

pub type MutationOutcome {
  MutationOutcome(
    data: json.Json,
    store: store.Store,
    identity: synthetic_identity.SyntheticIdentityRegistry,
    staged_resource_ids: List(String),
    log_drafts: List(mutation_helpers.LogDraft),
  )
}

Constructors

pub type PrivacyError {
  ParseFailed(root_field.RootFieldError)
}

Constructors

Values

pub fn is_privacy_mutation_root(name: String) -> Bool
pub fn process_mutation(
  store: store.Store,
  identity: synthetic_identity.SyntheticIdentityRegistry,
  request_path: String,
  document: String,
  variables: dict.Dict(String, root_field.ResolvedValue),
) -> Result(MutationOutcome, PrivacyError)
pub fn process_mutation_with_upstream(
  store: store.Store,
  identity: synthetic_identity.SyntheticIdentityRegistry,
  request_path: String,
  document: String,
  variables: dict.Dict(String, root_field.ResolvedValue),
  upstream: upstream_query.UpstreamContext,
) -> Result(MutationOutcome, PrivacyError)
Search Document