shopify_draft_proxy/proxy/admin_platform

Mirrors the utility subset of src/proxy/admin-platform.ts.

This pass ports the Admin Platform roots that are safe to model without product/customer/order substrate: public API versions, generic null Node fallbacks, Job echo reads, backup region reads/updates, empty taxonomy search/catalog shapes, staff access blockers, and local Flow utility mutations.

Types

pub type AdminPlatformError {
  ParseFailed(root_field.RootFieldError)
}

Constructors

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

Values

pub fn handle_query_request(
  proxy: proxy_state.DraftProxy,
  request: proxy_state.Request,
  parsed: parse_operation.ParsedOperation,
  primary_root_field: String,
  document: String,
  variables: dict.Dict(String, root_field.ResolvedValue),
) -> #(proxy_state.Response, proxy_state.DraftProxy)

Pattern 1: cold LiveHybrid utility/node reads should forward to the cassette/upstream verbatim. Once this proxy has local admin-platform state or staged node-owning records, keep using the local serializers so snapshot and read-after-write behavior remain local.

pub fn is_admin_platform_mutation_root(name: String) -> Bool
pub fn is_admin_platform_query_root(name: String) -> Bool
pub fn list_supported_admin_platform_node_types() -> List(String)
pub fn process(
  store: store.Store,
  document: String,
  variables: dict.Dict(String, root_field.ResolvedValue),
) -> Result(json.Json, AdminPlatformError)
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, AdminPlatformError)
Search Document