shopify_draft_proxy/proxy/shipping_fulfillments

Bounded shipping/fulfillments port slice.

Covers the shipping/fulfillment roots ported during HAR-493 while keeping the broader order return/edit domains as captured-state slices.

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 ShippingFulfillmentsError {
  ParseFailed(root_field.RootFieldError)
}

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 2 for cold LiveHybrid shipping reads: fetch the captured upstream response, hydrate the shipping/store slices needed by later local lifecycle handlers, and return Shopify’s payload verbatim. Once local shipping state or a proxy-synthetic id is involved, stay local so staged read-after-write effects are not bypassed.

pub fn is_shipping_fulfillment_mutation_root(
  name: String,
) -> Bool
pub fn is_shipping_fulfillment_query_root(name: String) -> Bool
pub fn local_has_shipping_resource_id(
  proxy: proxy_state.DraftProxy,
  variables: dict.Dict(String, root_field.ResolvedValue),
) -> Bool
pub fn process(
  store: store.Store,
  document: String,
  variables: dict.Dict(String, root_field.ResolvedValue),
) -> Result(json.Json, ShippingFulfillmentsError)
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, ShippingFulfillmentsError)
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, ShippingFulfillmentsError)
pub fn wrap_data(data: json.Json) -> json.Json
Search Document