generated

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Code generated by Ridu. DO NOT EDIT.

Index

Constants

View Source
const PrimitiveProductsBodyBlocksBlockCardBlockType = "card"

PrimitiveProductsBodyBlocksBlockCardBlockType is the immutable stored discriminator.

View Source
const PrimitiveProductsContentCardBlockType = "card"

PrimitiveProductsContentCardBlockType is the immutable stored discriminator.

View Source
const PrimitiveProductsContentNoteBlockType = "note"

PrimitiveProductsContentNoteBlockType is the immutable stored discriminator.

View Source
const PrimitiveProductsLocalizedBodyBlocksBlockCardBlockType = "card"

PrimitiveProductsLocalizedBodyBlocksBlockCardBlockType is the immutable stored discriminator.

Variables

View Source
var PrimitiveProductsCollection = core.NewTypedCollection[PrimitiveProduct, PrimitiveProductCreate, PrimitiveProductUpdate]("primitive-products")
View Source
var PrimitiveProductsCollectionAllLocales = core.NewTypedAllLocalesCollection[PrimitiveProductAllLocales]("primitive-products")

PrimitiveProductsCollectionAllLocales reads all translations with optional population and projection.

Functions

This section is empty.

Types

type BlockOptional

type BlockOptional[T any] struct{ Value *T }

BlockOptional preserves omitted, explicit null, and concrete nullable block children. A nil outer pointer is absent; a nil Value is explicit JSON null.

func (*BlockOptional[T]) Get

func (value *BlockOptional[T]) Get() (T, bool)

Get returns the concrete value, or the zero value and false for omission or null. Inspect the outer pointer and Value only when omission and null must be distinguished.

func (BlockOptional[T]) MarshalJSON

func (value BlockOptional[T]) MarshalJSON() ([]byte, error)

func (*BlockOptional[T]) UnmarshalJSON

func (value *BlockOptional[T]) UnmarshalJSON(data []byte) error

type ContractError

type ContractError struct {
	Operation     string
	Container     string
	Path          string
	Discriminator string
	Reason        string
	Err           error
}

ContractError identifies an encode, decode or retain failure without including the document or field payload. Path is relative to Container and includes nested field names and array indexes. Use errors.As to inspect it; Unwrap preserves the underlying JSON or plugin error.

func (*ContractError) Error

func (err *ContractError) Error() string

func (*ContractError) Unwrap

func (err *ContractError) Unwrap() error

type PrimitiveProduct

type PrimitiveProduct struct {
	ID        string `json:"id"`
	CreatedAt string `json:"createdAt"`
	UpdatedAt string `json:"updatedAt"`
	Status    string `json:"_status"`
	Revision  int    `json:"_revision"`
	// Title may be omitted by access rules or projection.
	Title *string `json:"title,omitempty"`
	// SellingPoints may be omitted by access rules or projection.
	SellingPoints []string `json:"sellingPoints,omitzero"`
	// AvailableSizes may be omitted by access rules or projection.
	AvailableSizes []float64 `json:"availableSizes,omitzero"`
	// LocalizedPoints may be omitted by access rules or projection.
	LocalizedPoints []string `json:"localizedPoints,omitzero"`
	// LocalizedSizes may be omitted by access rules or projection.
	LocalizedSizes []float64 `json:"localizedSizes,omitzero"`
	// Details may be omitted by access rules or projection.
	Details *struct {
		// Points may be omitted by access rules or projection.
		Points []string `json:"points,omitzero"`
		// Sizes may be omitted by access rules or projection.
		Sizes []float64 `json:"sizes,omitzero"`
	} `json:"details,omitempty"`
	// Variants may be omitted by access rules or projection.
	Variants []struct {
		Key string `json:"_key"`
		// Points may be omitted by access rules or projection.
		Points []string `json:"points,omitzero"`
		// Sizes may be omitted by access rules or projection.
		Sizes []float64 `json:"sizes,omitzero"`
	} `json:"variants,omitempty"`
	// Content may be omitted by access rules or projection.
	Content *PrimitiveProductsContent `json:"content,omitempty"`
	// Body may be omitted by access rules or projection.
	Body *richtext.Document[PrimitiveProductsBodyBlocksBlockPayload] `json:"body,omitempty"`
	// LocalizedBody may be omitted by access rules or projection.
	LocalizedBody *richtext.Document[PrimitiveProductsLocalizedBodyBlocksBlockPayload] `json:"localizedBody,omitempty"`
}

PrimitiveProduct is a single-locale read. Authored fields can be omitted by access rules or projection.

func (*PrimitiveProduct) UnmarshalJSON

func (value *PrimitiveProduct) UnmarshalJSON(data []byte) error

type PrimitiveProductAllLocales

type PrimitiveProductAllLocales struct {
	ID        string `json:"id"`
	CreatedAt string `json:"createdAt"`
	UpdatedAt string `json:"updatedAt"`
	Status    string `json:"_status"`
	Revision  int    `json:"_revision"`
	// Title may be omitted by access rules or projection.
	Title *string `json:"title,omitempty"`
	// SellingPoints may be omitted by access rules or projection.
	SellingPoints []string `json:"sellingPoints,omitzero"`
	// AvailableSizes may be omitted by access rules or projection.
	AvailableSizes []float64 `json:"availableSizes,omitzero"`
	// LocalizedPoints may be omitted by access rules or projection.
	// Locale-code map; missing locales are absent translations.
	LocalizedPoints *map[string][]string `json:"localizedPoints,omitzero"`
	// LocalizedSizes may be omitted by access rules or projection.
	// Locale-code map; missing locales are absent translations.
	LocalizedSizes *map[string][]float64 `json:"localizedSizes,omitzero"`
	// Details may be omitted by access rules or projection.
	Details *struct {
		// Points may be omitted by access rules or projection.
		Points []string `json:"points,omitzero"`
		// Sizes may be omitted by access rules or projection.
		Sizes []float64 `json:"sizes,omitzero"`
	} `json:"details,omitempty"`
	// Variants may be omitted by access rules or projection.
	Variants []struct {
		Key string `json:"_key"`
		// Points may be omitted by access rules or projection.
		Points []string `json:"points,omitzero"`
		// Sizes may be omitted by access rules or projection.
		Sizes []float64 `json:"sizes,omitzero"`
	} `json:"variants,omitempty"`
	// Content may be omitted by access rules or projection.
	Content *PrimitiveProductsContentAllLocales `json:"content,omitempty"`
	// Body may be omitted by access rules or projection.
	Body *richtext.Document[PrimitiveProductsBodyBlocksBlockAllLocalesPayload] `json:"body,omitempty"`
	// LocalizedBody may be omitted by access rules or projection.
	// Locale-code map; missing locales are absent translations.
	LocalizedBody *map[string]*richtext.Document[PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValuePayload] `json:"localizedBody,omitempty"`
}

PrimitiveProductAllLocales is an all-locales read: localized fields contain locale-code maps.

func (*PrimitiveProductAllLocales) UnmarshalJSON

func (value *PrimitiveProductAllLocales) UnmarshalJSON(data []byte) error

type PrimitiveProductCreate

type PrimitiveProductCreate struct {
	// Title is required when creating this value.
	Title string `json:"title"`
	// SellingPoints requires core.NonNull(value); JSON null is rejected.
	SellingPoints core.NonNullInput[[]string] `json:"sellingPoints"`
	// AvailableSizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	AvailableSizes *core.Input[[]float64] `json:"availableSizes,omitempty"`
	// LocalizedPoints: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	LocalizedPoints *core.Input[[]string] `json:"localizedPoints,omitempty"`
	// LocalizedSizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	LocalizedSizes *core.Input[[]float64] `json:"localizedSizes,omitempty"`
	// Details: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Details *core.Input[struct {
		// Points: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Points *core.Input[[]string] `json:"points,omitempty"`
		// Sizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Sizes *core.Input[[]float64] `json:"sizes,omitempty"`
	}] `json:"details,omitempty"`
	// Variants: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Variants *core.Input[[]struct {
		Key string `json:"_key,omitempty"`
		// Points: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Points *core.Input[[]string] `json:"points,omitempty"`
		// Sizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Sizes *core.Input[[]float64] `json:"sizes,omitempty"`
	}] `json:"variants,omitempty"`
	// Content: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Content *core.Input[PrimitiveProductsContentInput] `json:"content,omitempty"`
	// Body: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Body *core.Input[richtext.Document[PrimitiveProductsBodyBlocksBlockInputPayload]] `json:"body,omitempty"`
	// LocalizedBody: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	LocalizedBody *core.Input[richtext.Document[PrimitiveProductsLocalizedBodyBlocksBlockInputPayload]] `json:"localizedBody,omitempty"`
}

PrimitiveProductCreate supplies a new document. Required values are concrete; defaulted values may be omitted, and nullable values use core.Set or core.Null.

func (*PrimitiveProductCreate) UnmarshalJSON

func (value *PrimitiveProductCreate) UnmarshalJSON(data []byte) error

type PrimitiveProductUpdate

type PrimitiveProductUpdate struct {
	// Title: nil omits the field; a pointer sends a value. Null is not allowed.
	Title *string `json:"title,omitempty"`
	// SellingPoints: nil omits the field; core.SetNonNull sends a value and rejects JSON null.
	SellingPoints *core.NonNullInput[[]string] `json:"sellingPoints,omitempty"`
	// AvailableSizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	AvailableSizes *core.Input[[]float64] `json:"availableSizes,omitempty"`
	// LocalizedPoints: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	LocalizedPoints *core.Input[[]string] `json:"localizedPoints,omitempty"`
	// LocalizedSizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	LocalizedSizes *core.Input[[]float64] `json:"localizedSizes,omitempty"`
	// Details: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Details *core.Input[struct {
		// Points: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Points *core.Input[[]string] `json:"points,omitempty"`
		// Sizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Sizes *core.Input[[]float64] `json:"sizes,omitempty"`
	}] `json:"details,omitempty"`
	// Variants: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Variants *core.Input[[]struct {
		Key string `json:"_key,omitempty"`
		// Points: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Points *core.Input[[]string] `json:"points,omitempty"`
		// Sizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
		Sizes *core.Input[[]float64] `json:"sizes,omitempty"`
	}] `json:"variants,omitempty"`
	// Content: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	// A supplied list replaces order and membership; use the read list's Retain method to preserve untouched blocks.
	Content *core.Input[PrimitiveProductsContentUpdate] `json:"content,omitempty"`
	// Body: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Body *core.Input[richtext.Document[PrimitiveProductsBodyBlocksBlockUpdatePayload]] `json:"body,omitempty"`
	// LocalizedBody: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	LocalizedBody *core.Input[richtext.Document[PrimitiveProductsLocalizedBodyBlocksBlockUpdatePayload]] `json:"localizedBody,omitempty"`
}

PrimitiveProductUpdate edits a document. Nil fields are unchanged; supplied block lists replace order and membership.

func (*PrimitiveProductUpdate) UnmarshalJSON

func (value *PrimitiveProductUpdate) UnmarshalJSON(data []byte) error

type PrimitiveProductsBodyBlocksBlock

type PrimitiveProductsBodyBlocksBlock []PrimitiveProductsBodyBlocksBlockBlock

PrimitiveProductsBodyBlocksBlock is an ordered list of block pointers. Nil rows are invalid.

func (PrimitiveProductsBodyBlocksBlock) MarshalJSON

func (rows PrimitiveProductsBodyBlocksBlock) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsBodyBlocksBlock) Retain

Retain creates fresh key-only updates in the same order, preserving every occurrence. Edit the returned update pointers, append new input pointers, or explicitly remove/reorder entries. No authored fields are copied, including redacted, localized or populated values. An absent list, nil row, empty key or duplicate key returns an error and no partial list. An explicitly empty list returns an empty update list. Use revision checks when saving edits.

func (*PrimitiveProductsBodyBlocksBlock) UnmarshalJSON

func (rows *PrimitiveProductsBodyBlocksBlock) UnmarshalJSON(data []byte) error

type PrimitiveProductsBodyBlocksBlockAllLocales

type PrimitiveProductsBodyBlocksBlockAllLocales []PrimitiveProductsBodyBlocksBlockAllLocalesBlock

PrimitiveProductsBodyBlocksBlockAllLocales is an ordered list of block pointers. Nil rows are invalid. Localized children contain locale-code maps; use ordinary output types for a single locale.

func (PrimitiveProductsBodyBlocksBlockAllLocales) MarshalJSON

func (rows PrimitiveProductsBodyBlocksBlockAllLocales) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsBodyBlocksBlockAllLocales) Retain

Retain creates fresh key-only updates in the same order, preserving every occurrence. Edit the returned update pointers, append new input pointers, or explicitly remove/reorder entries. No authored fields are copied, including redacted, localized or populated values. An absent list, nil row, empty key or duplicate key returns an error and no partial list. An explicitly empty list returns an empty update list. Use revision checks when saving edits.

func (*PrimitiveProductsBodyBlocksBlockAllLocales) UnmarshalJSON

func (rows *PrimitiveProductsBodyBlocksBlockAllLocales) UnmarshalJSON(data []byte) error

type PrimitiveProductsBodyBlocksBlockAllLocalesBlock

type PrimitiveProductsBodyBlocksBlockAllLocalesBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsBodyBlocksBlockAllLocalesBlock admits only generated block pointers; decoding returns those same pointer types.

type PrimitiveProductsBodyBlocksBlockAllLocalesPayload

type PrimitiveProductsBodyBlocksBlockAllLocalesPayload struct {
	Value PrimitiveProductsBodyBlocksBlockAllLocalesBlock
}

PrimitiveProductsBodyBlocksBlockAllLocalesPayload is one typed detached payload, with scalar JSON encoding.

func (PrimitiveProductsBodyBlocksBlockAllLocalesPayload) MarshalJSON

func (PrimitiveProductsBodyBlocksBlockAllLocalesPayload) Retain

Retain creates a key-only update for this embedded occurrence, without copying redacted, localized or populated authored fields. Use revision checks when saving.

func (*PrimitiveProductsBodyBlocksBlockAllLocalesPayload) UnmarshalJSON

type PrimitiveProductsBodyBlocksBlockAllLocalesValue

type PrimitiveProductsBodyBlocksBlockAllLocalesValue []PrimitiveProductsBodyBlocksBlockAllLocalesValueBlock

PrimitiveProductsBodyBlocksBlockAllLocalesValue is an ordered list of block pointers. Nil rows are invalid. This is one locale's value beneath a localized container in an all-locales response. Children are ordinary values; populated target documents still have all-locales shapes.

func (PrimitiveProductsBodyBlocksBlockAllLocalesValue) MarshalJSON

func (*PrimitiveProductsBodyBlocksBlockAllLocalesValue) Retain

Retain creates fresh key-only updates in the same order, preserving every occurrence. Edit the returned update pointers, append new input pointers, or explicitly remove/reorder entries. No authored fields are copied, including redacted, localized or populated values. An absent list, nil row, empty key or duplicate key returns an error and no partial list. An explicitly empty list returns an empty update list. Use revision checks when saving edits.

func (*PrimitiveProductsBodyBlocksBlockAllLocalesValue) UnmarshalJSON

func (rows *PrimitiveProductsBodyBlocksBlockAllLocalesValue) UnmarshalJSON(data []byte) error

type PrimitiveProductsBodyBlocksBlockAllLocalesValueBlock

type PrimitiveProductsBodyBlocksBlockAllLocalesValueBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsBodyBlocksBlockAllLocalesValueBlock admits only generated block pointers; decoding returns those same pointer types.

type PrimitiveProductsBodyBlocksBlockAllLocalesValuePayload

type PrimitiveProductsBodyBlocksBlockAllLocalesValuePayload struct {
	Value PrimitiveProductsBodyBlocksBlockAllLocalesValueBlock
}

PrimitiveProductsBodyBlocksBlockAllLocalesValuePayload is one typed detached payload, with scalar JSON encoding.

func (PrimitiveProductsBodyBlocksBlockAllLocalesValuePayload) MarshalJSON

func (PrimitiveProductsBodyBlocksBlockAllLocalesValuePayload) Retain

Retain creates a key-only update for this embedded occurrence, without copying redacted, localized or populated authored fields. Use revision checks when saving.

func (*PrimitiveProductsBodyBlocksBlockAllLocalesValuePayload) UnmarshalJSON

type PrimitiveProductsBodyBlocksBlockBlock

type PrimitiveProductsBodyBlocksBlockBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsBodyBlocksBlockBlock admits only generated block pointers; decoding returns those same pointer types.

type PrimitiveProductsBodyBlocksBlockCard

type PrimitiveProductsBodyBlocksBlockCard struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Points: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Points *BlockOptional[[]string] `json:"points,omitzero"`
	// Sizes: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sizes *BlockOptional[[]float64] `json:"sizes,omitzero"`
}

PrimitiveProductsBodyBlocksBlockCard is a generated block. Use *PrimitiveProductsBodyBlocksBlockCard in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create. Create with PrimitiveProductsBodyBlocksBlockCardInput. To edit, retain the read list and modify its PrimitiveProductsBodyBlocksBlockCardUpdate pointers.

func (*PrimitiveProductsBodyBlocksBlockCard) BlockKey

func (value *PrimitiveProductsBodyBlocksBlockCard) BlockKey() string

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*PrimitiveProductsBodyBlocksBlockCard) BlockType

BlockType returns the immutable stored discriminator.

func (PrimitiveProductsBodyBlocksBlockCard) MarshalJSON

func (value PrimitiveProductsBodyBlocksBlockCard) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsBodyBlocksBlockCard) UnmarshalJSON

func (value *PrimitiveProductsBodyBlocksBlockCard) UnmarshalJSON(data []byte) error

type PrimitiveProductsBodyBlocksBlockCardAllLocales

type PrimitiveProductsBodyBlocksBlockCardAllLocales struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Points: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Points *BlockOptional[[]string] `json:"points,omitzero"`
	// Sizes: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sizes *BlockOptional[[]float64] `json:"sizes,omitzero"`
}

PrimitiveProductsBodyBlocksBlockCardAllLocales is a generated block. Use *PrimitiveProductsBodyBlocksBlockCardAllLocales in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create.

func (*PrimitiveProductsBodyBlocksBlockCardAllLocales) BlockKey

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*PrimitiveProductsBodyBlocksBlockCardAllLocales) BlockType

BlockType returns the immutable stored discriminator.

func (PrimitiveProductsBodyBlocksBlockCardAllLocales) MarshalJSON

func (*PrimitiveProductsBodyBlocksBlockCardAllLocales) UnmarshalJSON

func (value *PrimitiveProductsBodyBlocksBlockCardAllLocales) UnmarshalJSON(data []byte) error

type PrimitiveProductsBodyBlocksBlockCardAllLocalesValue

type PrimitiveProductsBodyBlocksBlockCardAllLocalesValue struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Points: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Points *BlockOptional[[]string] `json:"points,omitzero"`
	// Sizes: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sizes *BlockOptional[[]float64] `json:"sizes,omitzero"`
}

PrimitiveProductsBodyBlocksBlockCardAllLocalesValue is a generated block. Use *PrimitiveProductsBodyBlocksBlockCardAllLocalesValue in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create.

func (*PrimitiveProductsBodyBlocksBlockCardAllLocalesValue) BlockKey

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*PrimitiveProductsBodyBlocksBlockCardAllLocalesValue) BlockType

BlockType returns the immutable stored discriminator.

func (PrimitiveProductsBodyBlocksBlockCardAllLocalesValue) MarshalJSON

func (*PrimitiveProductsBodyBlocksBlockCardAllLocalesValue) UnmarshalJSON

func (value *PrimitiveProductsBodyBlocksBlockCardAllLocalesValue) UnmarshalJSON(data []byte) error

type PrimitiveProductsBodyBlocksBlockCardInput

type PrimitiveProductsBodyBlocksBlockCardInput struct {
	// Key identifies this occurrence; omit it for a new server-assigned identity.
	Key string `json:"_key,omitempty"`
	// Points: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Points *core.Input[[]string] `json:"points,omitempty"`
	// Sizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Sizes *core.Input[[]float64] `json:"sizes,omitempty"`
}

PrimitiveProductsBodyBlocksBlockCardInput is a generated block. Use *PrimitiveProductsBodyBlocksBlockCardInput in block lists and type switches. Input supplies a new occurrence's required fields. An empty Key requests a server-assigned key. Read this block as PrimitiveProductsBodyBlocksBlockCard; edit an existing occurrence with PrimitiveProductsBodyBlocksBlockCardUpdate.

func (*PrimitiveProductsBodyBlocksBlockCardInput) BlockKey

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*PrimitiveProductsBodyBlocksBlockCardInput) BlockType

BlockType returns the immutable stored discriminator.

func (PrimitiveProductsBodyBlocksBlockCardInput) MarshalJSON

func (value PrimitiveProductsBodyBlocksBlockCardInput) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsBodyBlocksBlockCardInput) UnmarshalJSON

func (value *PrimitiveProductsBodyBlocksBlockCardInput) UnmarshalJSON(data []byte) error

type PrimitiveProductsBodyBlocksBlockCardUpdate

type PrimitiveProductsBodyBlocksBlockCardUpdate struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Points: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Points *core.Input[[]string] `json:"points,omitempty"`
	// Sizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Sizes *core.Input[[]float64] `json:"sizes,omitempty"`
}

PrimitiveProductsBodyBlocksBlockCardUpdate is a generated block. Use *PrimitiveProductsBodyBlocksBlockCardUpdate in block lists and type switches. Update retains an existing occurrence by Key. Omitted children remain unchanged. The engine verifies that the key belongs to an existing occurrence of this variant. Start with the read list's Retain method; use PrimitiveProductsBodyBlocksBlockCardInput for additions.

func (*PrimitiveProductsBodyBlocksBlockCardUpdate) BlockKey

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*PrimitiveProductsBodyBlocksBlockCardUpdate) BlockType

BlockType returns the immutable stored discriminator.

func (PrimitiveProductsBodyBlocksBlockCardUpdate) MarshalJSON

func (value PrimitiveProductsBodyBlocksBlockCardUpdate) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsBodyBlocksBlockCardUpdate) UnmarshalJSON

func (value *PrimitiveProductsBodyBlocksBlockCardUpdate) UnmarshalJSON(data []byte) error

type PrimitiveProductsBodyBlocksBlockInput

type PrimitiveProductsBodyBlocksBlockInput []PrimitiveProductsBodyBlocksBlockInputBlock

PrimitiveProductsBodyBlocksBlockInput is an ordered list of block pointers. Nil rows are invalid.

func (PrimitiveProductsBodyBlocksBlockInput) MarshalJSON

func (rows PrimitiveProductsBodyBlocksBlockInput) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsBodyBlocksBlockInput) UnmarshalJSON

func (rows *PrimitiveProductsBodyBlocksBlockInput) UnmarshalJSON(data []byte) error

type PrimitiveProductsBodyBlocksBlockInputBlock

type PrimitiveProductsBodyBlocksBlockInputBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsBodyBlocksBlockInputBlock admits only generated block pointers; decoding returns those same pointer types.

type PrimitiveProductsBodyBlocksBlockInputPayload

type PrimitiveProductsBodyBlocksBlockInputPayload struct {
	Value PrimitiveProductsBodyBlocksBlockInputBlock
}

PrimitiveProductsBodyBlocksBlockInputPayload is one typed detached payload, with scalar JSON encoding.

func (PrimitiveProductsBodyBlocksBlockInputPayload) MarshalJSON

func (*PrimitiveProductsBodyBlocksBlockInputPayload) UnmarshalJSON

func (p *PrimitiveProductsBodyBlocksBlockInputPayload) UnmarshalJSON(data []byte) error

type PrimitiveProductsBodyBlocksBlockPayload

type PrimitiveProductsBodyBlocksBlockPayload struct {
	Value PrimitiveProductsBodyBlocksBlockBlock
}

PrimitiveProductsBodyBlocksBlockPayload is one typed detached payload, with scalar JSON encoding.

func (PrimitiveProductsBodyBlocksBlockPayload) MarshalJSON

func (p PrimitiveProductsBodyBlocksBlockPayload) MarshalJSON() ([]byte, error)

func (PrimitiveProductsBodyBlocksBlockPayload) Retain

Retain creates a key-only update for this embedded occurrence, without copying redacted, localized or populated authored fields. Use revision checks when saving.

func (*PrimitiveProductsBodyBlocksBlockPayload) UnmarshalJSON

func (p *PrimitiveProductsBodyBlocksBlockPayload) UnmarshalJSON(data []byte) error

type PrimitiveProductsBodyBlocksBlockUpdate

type PrimitiveProductsBodyBlocksBlockUpdate []PrimitiveProductsBodyBlocksBlockUpdateBlock

PrimitiveProductsBodyBlocksBlockUpdate is an ordered list of block pointers. Nil rows are invalid. Saving this list replaces order and membership: omitted occurrences are removed. Start with a read list's Retain method to preserve untouched blocks.

func (PrimitiveProductsBodyBlocksBlockUpdate) MarshalJSON

func (rows PrimitiveProductsBodyBlocksBlockUpdate) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsBodyBlocksBlockUpdate) UnmarshalJSON

func (rows *PrimitiveProductsBodyBlocksBlockUpdate) UnmarshalJSON(data []byte) error

type PrimitiveProductsBodyBlocksBlockUpdateBlock

type PrimitiveProductsBodyBlocksBlockUpdateBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsBodyBlocksBlockUpdateBlock admits only generated block pointers; decoding returns those same pointer types. Use keyed Update pointers for existing occurrences and Input pointers for new occurrences.

type PrimitiveProductsBodyBlocksBlockUpdatePayload

type PrimitiveProductsBodyBlocksBlockUpdatePayload struct {
	Value PrimitiveProductsBodyBlocksBlockUpdateBlock
}

PrimitiveProductsBodyBlocksBlockUpdatePayload is one typed detached payload, with scalar JSON encoding.

func (PrimitiveProductsBodyBlocksBlockUpdatePayload) MarshalJSON

func (*PrimitiveProductsBodyBlocksBlockUpdatePayload) UnmarshalJSON

func (p *PrimitiveProductsBodyBlocksBlockUpdatePayload) UnmarshalJSON(data []byte) error

type PrimitiveProductsContent

type PrimitiveProductsContent []PrimitiveProductsContentBlock

PrimitiveProductsContent is an ordered list of block pointers. Nil rows are invalid.

func (PrimitiveProductsContent) MarshalJSON

func (rows PrimitiveProductsContent) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsContent) Retain

Retain creates fresh key-only updates in the same order, preserving every occurrence. Edit the returned update pointers, append new input pointers, or explicitly remove/reorder entries. No authored fields are copied, including redacted, localized or populated values. An absent list, nil row, empty key or duplicate key returns an error and no partial list. An explicitly empty list returns an empty update list. Use revision checks when saving edits.

func (*PrimitiveProductsContent) UnmarshalJSON

func (rows *PrimitiveProductsContent) UnmarshalJSON(data []byte) error

type PrimitiveProductsContentAllLocales

type PrimitiveProductsContentAllLocales []PrimitiveProductsContentAllLocalesBlock

PrimitiveProductsContentAllLocales is an ordered list of block pointers. Nil rows are invalid. Localized children contain locale-code maps; use ordinary output types for a single locale.

func (PrimitiveProductsContentAllLocales) MarshalJSON

func (rows PrimitiveProductsContentAllLocales) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsContentAllLocales) Retain

Retain creates fresh key-only updates in the same order, preserving every occurrence. Edit the returned update pointers, append new input pointers, or explicitly remove/reorder entries. No authored fields are copied, including redacted, localized or populated values. An absent list, nil row, empty key or duplicate key returns an error and no partial list. An explicitly empty list returns an empty update list. Use revision checks when saving edits.

func (*PrimitiveProductsContentAllLocales) UnmarshalJSON

func (rows *PrimitiveProductsContentAllLocales) UnmarshalJSON(data []byte) error

type PrimitiveProductsContentAllLocalesBlock

type PrimitiveProductsContentAllLocalesBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsContentAllLocalesBlock admits only generated block pointers; decoding returns those same pointer types.

type PrimitiveProductsContentAllLocalesValue

type PrimitiveProductsContentAllLocalesValue []PrimitiveProductsContentAllLocalesValueBlock

PrimitiveProductsContentAllLocalesValue is an ordered list of block pointers. Nil rows are invalid. This is one locale's value beneath a localized container in an all-locales response. Children are ordinary values; populated target documents still have all-locales shapes.

func (PrimitiveProductsContentAllLocalesValue) MarshalJSON

func (rows PrimitiveProductsContentAllLocalesValue) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsContentAllLocalesValue) Retain

Retain creates fresh key-only updates in the same order, preserving every occurrence. Edit the returned update pointers, append new input pointers, or explicitly remove/reorder entries. No authored fields are copied, including redacted, localized or populated values. An absent list, nil row, empty key or duplicate key returns an error and no partial list. An explicitly empty list returns an empty update list. Use revision checks when saving edits.

func (*PrimitiveProductsContentAllLocalesValue) UnmarshalJSON

func (rows *PrimitiveProductsContentAllLocalesValue) UnmarshalJSON(data []byte) error

type PrimitiveProductsContentAllLocalesValueBlock

type PrimitiveProductsContentAllLocalesValueBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsContentAllLocalesValueBlock admits only generated block pointers; decoding returns those same pointer types.

type PrimitiveProductsContentBlock

type PrimitiveProductsContentBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsContentBlock admits only generated block pointers; decoding returns those same pointer types.

type PrimitiveProductsContentCard

type PrimitiveProductsContentCard struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Points: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Points *BlockOptional[[]string] `json:"points,omitzero"`
	// Sizes: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sizes *BlockOptional[[]float64] `json:"sizes,omitzero"`
}

PrimitiveProductsContentCard is a generated block. Use *PrimitiveProductsContentCard in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create. Create with PrimitiveProductsContentCardInput. To edit, retain the read list and modify its PrimitiveProductsContentCardUpdate pointers.

func (*PrimitiveProductsContentCard) BlockKey

func (value *PrimitiveProductsContentCard) BlockKey() string

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*PrimitiveProductsContentCard) BlockType

func (*PrimitiveProductsContentCard) BlockType() string

BlockType returns the immutable stored discriminator.

func (PrimitiveProductsContentCard) MarshalJSON

func (value PrimitiveProductsContentCard) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsContentCard) UnmarshalJSON

func (value *PrimitiveProductsContentCard) UnmarshalJSON(data []byte) error

type PrimitiveProductsContentCardAllLocales

type PrimitiveProductsContentCardAllLocales struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Points: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Points *BlockOptional[[]string] `json:"points,omitzero"`
	// Sizes: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sizes *BlockOptional[[]float64] `json:"sizes,omitzero"`
}

PrimitiveProductsContentCardAllLocales is a generated block. Use *PrimitiveProductsContentCardAllLocales in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create.

func (*PrimitiveProductsContentCardAllLocales) BlockKey

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*PrimitiveProductsContentCardAllLocales) BlockType

BlockType returns the immutable stored discriminator.

func (PrimitiveProductsContentCardAllLocales) MarshalJSON

func (value PrimitiveProductsContentCardAllLocales) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsContentCardAllLocales) UnmarshalJSON

func (value *PrimitiveProductsContentCardAllLocales) UnmarshalJSON(data []byte) error

type PrimitiveProductsContentCardAllLocalesValue

type PrimitiveProductsContentCardAllLocalesValue struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Points: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Points *BlockOptional[[]string] `json:"points,omitzero"`
	// Sizes: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sizes *BlockOptional[[]float64] `json:"sizes,omitzero"`
}

PrimitiveProductsContentCardAllLocalesValue is a generated block. Use *PrimitiveProductsContentCardAllLocalesValue in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create.

func (*PrimitiveProductsContentCardAllLocalesValue) BlockKey

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*PrimitiveProductsContentCardAllLocalesValue) BlockType

BlockType returns the immutable stored discriminator.

func (PrimitiveProductsContentCardAllLocalesValue) MarshalJSON

func (value PrimitiveProductsContentCardAllLocalesValue) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsContentCardAllLocalesValue) UnmarshalJSON

func (value *PrimitiveProductsContentCardAllLocalesValue) UnmarshalJSON(data []byte) error

type PrimitiveProductsContentCardInput

type PrimitiveProductsContentCardInput struct {
	// Key identifies this occurrence; omit it for a new server-assigned identity.
	Key string `json:"_key,omitempty"`
	// Points: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Points *core.Input[[]string] `json:"points,omitempty"`
	// Sizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Sizes *core.Input[[]float64] `json:"sizes,omitempty"`
}

PrimitiveProductsContentCardInput is a generated block. Use *PrimitiveProductsContentCardInput in block lists and type switches. Input supplies a new occurrence's required fields. An empty Key requests a server-assigned key. Read this block as PrimitiveProductsContentCard; edit an existing occurrence with PrimitiveProductsContentCardUpdate.

func (*PrimitiveProductsContentCardInput) BlockKey

func (value *PrimitiveProductsContentCardInput) BlockKey() string

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*PrimitiveProductsContentCardInput) BlockType

BlockType returns the immutable stored discriminator.

func (PrimitiveProductsContentCardInput) MarshalJSON

func (value PrimitiveProductsContentCardInput) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsContentCardInput) UnmarshalJSON

func (value *PrimitiveProductsContentCardInput) UnmarshalJSON(data []byte) error

type PrimitiveProductsContentCardUpdate

type PrimitiveProductsContentCardUpdate struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Points: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Points *core.Input[[]string] `json:"points,omitempty"`
	// Sizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Sizes *core.Input[[]float64] `json:"sizes,omitempty"`
}

PrimitiveProductsContentCardUpdate is a generated block. Use *PrimitiveProductsContentCardUpdate in block lists and type switches. Update retains an existing occurrence by Key. Omitted children remain unchanged. The engine verifies that the key belongs to an existing occurrence of this variant. Start with the read list's Retain method; use PrimitiveProductsContentCardInput for additions.

func (*PrimitiveProductsContentCardUpdate) BlockKey

func (value *PrimitiveProductsContentCardUpdate) BlockKey() string

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*PrimitiveProductsContentCardUpdate) BlockType

BlockType returns the immutable stored discriminator.

func (PrimitiveProductsContentCardUpdate) MarshalJSON

func (value PrimitiveProductsContentCardUpdate) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsContentCardUpdate) UnmarshalJSON

func (value *PrimitiveProductsContentCardUpdate) UnmarshalJSON(data []byte) error

type PrimitiveProductsContentInput

type PrimitiveProductsContentInput []PrimitiveProductsContentInputBlock

PrimitiveProductsContentInput is an ordered list of block pointers. Nil rows are invalid.

func (PrimitiveProductsContentInput) MarshalJSON

func (rows PrimitiveProductsContentInput) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsContentInput) UnmarshalJSON

func (rows *PrimitiveProductsContentInput) UnmarshalJSON(data []byte) error

type PrimitiveProductsContentInputBlock

type PrimitiveProductsContentInputBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsContentInputBlock admits only generated block pointers; decoding returns those same pointer types.

type PrimitiveProductsContentNote

type PrimitiveProductsContentNote struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Points: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Points *BlockOptional[[]string] `json:"points,omitzero"`
	// Sizes: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sizes *BlockOptional[[]float64] `json:"sizes,omitzero"`
}

PrimitiveProductsContentNote is a generated block. Use *PrimitiveProductsContentNote in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create. Create with PrimitiveProductsContentNoteInput. To edit, retain the read list and modify its PrimitiveProductsContentNoteUpdate pointers.

func (*PrimitiveProductsContentNote) BlockKey

func (value *PrimitiveProductsContentNote) BlockKey() string

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*PrimitiveProductsContentNote) BlockType

func (*PrimitiveProductsContentNote) BlockType() string

BlockType returns the immutable stored discriminator.

func (PrimitiveProductsContentNote) MarshalJSON

func (value PrimitiveProductsContentNote) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsContentNote) UnmarshalJSON

func (value *PrimitiveProductsContentNote) UnmarshalJSON(data []byte) error

type PrimitiveProductsContentNoteAllLocales

type PrimitiveProductsContentNoteAllLocales struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Points: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Points *BlockOptional[[]string] `json:"points,omitzero"`
	// Sizes: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sizes *BlockOptional[[]float64] `json:"sizes,omitzero"`
}

PrimitiveProductsContentNoteAllLocales is a generated block. Use *PrimitiveProductsContentNoteAllLocales in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create.

func (*PrimitiveProductsContentNoteAllLocales) BlockKey

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*PrimitiveProductsContentNoteAllLocales) BlockType

BlockType returns the immutable stored discriminator.

func (PrimitiveProductsContentNoteAllLocales) MarshalJSON

func (value PrimitiveProductsContentNoteAllLocales) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsContentNoteAllLocales) UnmarshalJSON

func (value *PrimitiveProductsContentNoteAllLocales) UnmarshalJSON(data []byte) error

type PrimitiveProductsContentNoteAllLocalesValue

type PrimitiveProductsContentNoteAllLocalesValue struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Points: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Points *BlockOptional[[]string] `json:"points,omitzero"`
	// Sizes: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sizes *BlockOptional[[]float64] `json:"sizes,omitzero"`
}

PrimitiveProductsContentNoteAllLocalesValue is a generated block. Use *PrimitiveProductsContentNoteAllLocalesValue in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create.

func (*PrimitiveProductsContentNoteAllLocalesValue) BlockKey

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*PrimitiveProductsContentNoteAllLocalesValue) BlockType

BlockType returns the immutable stored discriminator.

func (PrimitiveProductsContentNoteAllLocalesValue) MarshalJSON

func (value PrimitiveProductsContentNoteAllLocalesValue) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsContentNoteAllLocalesValue) UnmarshalJSON

func (value *PrimitiveProductsContentNoteAllLocalesValue) UnmarshalJSON(data []byte) error

type PrimitiveProductsContentNoteInput

type PrimitiveProductsContentNoteInput struct {
	// Key identifies this occurrence; omit it for a new server-assigned identity.
	Key string `json:"_key,omitempty"`
	// Points: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Points *core.Input[[]string] `json:"points,omitempty"`
	// Sizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Sizes *core.Input[[]float64] `json:"sizes,omitempty"`
}

PrimitiveProductsContentNoteInput is a generated block. Use *PrimitiveProductsContentNoteInput in block lists and type switches. Input supplies a new occurrence's required fields. An empty Key requests a server-assigned key. Read this block as PrimitiveProductsContentNote; edit an existing occurrence with PrimitiveProductsContentNoteUpdate.

func (*PrimitiveProductsContentNoteInput) BlockKey

func (value *PrimitiveProductsContentNoteInput) BlockKey() string

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*PrimitiveProductsContentNoteInput) BlockType

BlockType returns the immutable stored discriminator.

func (PrimitiveProductsContentNoteInput) MarshalJSON

func (value PrimitiveProductsContentNoteInput) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsContentNoteInput) UnmarshalJSON

func (value *PrimitiveProductsContentNoteInput) UnmarshalJSON(data []byte) error

type PrimitiveProductsContentNoteUpdate

type PrimitiveProductsContentNoteUpdate struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Points: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Points *core.Input[[]string] `json:"points,omitempty"`
	// Sizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Sizes *core.Input[[]float64] `json:"sizes,omitempty"`
}

PrimitiveProductsContentNoteUpdate is a generated block. Use *PrimitiveProductsContentNoteUpdate in block lists and type switches. Update retains an existing occurrence by Key. Omitted children remain unchanged. The engine verifies that the key belongs to an existing occurrence of this variant. Start with the read list's Retain method; use PrimitiveProductsContentNoteInput for additions.

func (*PrimitiveProductsContentNoteUpdate) BlockKey

func (value *PrimitiveProductsContentNoteUpdate) BlockKey() string

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*PrimitiveProductsContentNoteUpdate) BlockType

BlockType returns the immutable stored discriminator.

func (PrimitiveProductsContentNoteUpdate) MarshalJSON

func (value PrimitiveProductsContentNoteUpdate) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsContentNoteUpdate) UnmarshalJSON

func (value *PrimitiveProductsContentNoteUpdate) UnmarshalJSON(data []byte) error

type PrimitiveProductsContentUpdate

type PrimitiveProductsContentUpdate []PrimitiveProductsContentUpdateBlock

PrimitiveProductsContentUpdate is an ordered list of block pointers. Nil rows are invalid. Saving this list replaces order and membership: omitted occurrences are removed. Start with a read list's Retain method to preserve untouched blocks.

func (PrimitiveProductsContentUpdate) MarshalJSON

func (rows PrimitiveProductsContentUpdate) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsContentUpdate) UnmarshalJSON

func (rows *PrimitiveProductsContentUpdate) UnmarshalJSON(data []byte) error

type PrimitiveProductsContentUpdateBlock

type PrimitiveProductsContentUpdateBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsContentUpdateBlock admits only generated block pointers; decoding returns those same pointer types. Use keyed Update pointers for existing occurrences and Input pointers for new occurrences.

type PrimitiveProductsLocalizedBodyBlocksBlock

type PrimitiveProductsLocalizedBodyBlocksBlock []PrimitiveProductsLocalizedBodyBlocksBlockBlock

PrimitiveProductsLocalizedBodyBlocksBlock is an ordered list of block pointers. Nil rows are invalid.

func (PrimitiveProductsLocalizedBodyBlocksBlock) MarshalJSON

func (rows PrimitiveProductsLocalizedBodyBlocksBlock) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsLocalizedBodyBlocksBlock) Retain

Retain creates fresh key-only updates in the same order, preserving every occurrence. Edit the returned update pointers, append new input pointers, or explicitly remove/reorder entries. No authored fields are copied, including redacted, localized or populated values. An absent list, nil row, empty key or duplicate key returns an error and no partial list. An explicitly empty list returns an empty update list. Use revision checks when saving edits.

func (*PrimitiveProductsLocalizedBodyBlocksBlock) UnmarshalJSON

func (rows *PrimitiveProductsLocalizedBodyBlocksBlock) UnmarshalJSON(data []byte) error

type PrimitiveProductsLocalizedBodyBlocksBlockAllLocales

type PrimitiveProductsLocalizedBodyBlocksBlockAllLocales []PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesBlock

PrimitiveProductsLocalizedBodyBlocksBlockAllLocales is an ordered list of block pointers. Nil rows are invalid. Localized children contain locale-code maps; use ordinary output types for a single locale.

func (PrimitiveProductsLocalizedBodyBlocksBlockAllLocales) MarshalJSON

func (*PrimitiveProductsLocalizedBodyBlocksBlockAllLocales) Retain

Retain creates fresh key-only updates in the same order, preserving every occurrence. Edit the returned update pointers, append new input pointers, or explicitly remove/reorder entries. No authored fields are copied, including redacted, localized or populated values. An absent list, nil row, empty key or duplicate key returns an error and no partial list. An explicitly empty list returns an empty update list. Use revision checks when saving edits.

func (*PrimitiveProductsLocalizedBodyBlocksBlockAllLocales) UnmarshalJSON

type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesBlock

type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesBlock admits only generated block pointers; decoding returns those same pointer types.

type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesPayload

type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesPayload struct {
	Value PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesBlock
}

PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesPayload is one typed detached payload, with scalar JSON encoding.

func (PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesPayload) MarshalJSON

func (PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesPayload) Retain

Retain creates a key-only update for this embedded occurrence, without copying redacted, localized or populated authored fields. Use revision checks when saving.

func (*PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesPayload) UnmarshalJSON

type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValue

type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValue []PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValueBlock

PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValue is an ordered list of block pointers. Nil rows are invalid. This is one locale's value beneath a localized container in an all-locales response. Children are ordinary values; populated target documents still have all-locales shapes.

func (PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValue) MarshalJSON

func (*PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValue) Retain

Retain creates fresh key-only updates in the same order, preserving every occurrence. Edit the returned update pointers, append new input pointers, or explicitly remove/reorder entries. No authored fields are copied, including redacted, localized or populated values. An absent list, nil row, empty key or duplicate key returns an error and no partial list. An explicitly empty list returns an empty update list. Use revision checks when saving edits.

func (*PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValue) UnmarshalJSON

type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValueBlock

type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValueBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValueBlock admits only generated block pointers; decoding returns those same pointer types.

type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValuePayload

type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValuePayload struct {
	Value PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValueBlock
}

PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValuePayload is one typed detached payload, with scalar JSON encoding.

func (PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValuePayload) MarshalJSON

func (PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValuePayload) Retain

Retain creates a key-only update for this embedded occurrence, without copying redacted, localized or populated authored fields. Use revision checks when saving.

func (*PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValuePayload) UnmarshalJSON

type PrimitiveProductsLocalizedBodyBlocksBlockBlock

type PrimitiveProductsLocalizedBodyBlocksBlockBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsLocalizedBodyBlocksBlockBlock admits only generated block pointers; decoding returns those same pointer types.

type PrimitiveProductsLocalizedBodyBlocksBlockCard

type PrimitiveProductsLocalizedBodyBlocksBlockCard struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Points: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Points *BlockOptional[[]string] `json:"points,omitzero"`
	// Sizes: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sizes *BlockOptional[[]float64] `json:"sizes,omitzero"`
}

PrimitiveProductsLocalizedBodyBlocksBlockCard is a generated block. Use *PrimitiveProductsLocalizedBodyBlocksBlockCard in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create. Create with PrimitiveProductsLocalizedBodyBlocksBlockCardInput. To edit, retain the read list and modify its PrimitiveProductsLocalizedBodyBlocksBlockCardUpdate pointers.

func (*PrimitiveProductsLocalizedBodyBlocksBlockCard) BlockKey

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*PrimitiveProductsLocalizedBodyBlocksBlockCard) BlockType

BlockType returns the immutable stored discriminator.

func (PrimitiveProductsLocalizedBodyBlocksBlockCard) MarshalJSON

func (value PrimitiveProductsLocalizedBodyBlocksBlockCard) MarshalJSON() ([]byte, error)

func (*PrimitiveProductsLocalizedBodyBlocksBlockCard) UnmarshalJSON

func (value *PrimitiveProductsLocalizedBodyBlocksBlockCard) UnmarshalJSON(data []byte) error

type PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocales

type PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocales struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Points: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Points *BlockOptional[[]string] `json:"points,omitzero"`
	// Sizes: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sizes *BlockOptional[[]float64] `json:"sizes,omitzero"`
}

PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocales is a generated block. Use *PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocales in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create.

func (*PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocales) BlockKey

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocales) BlockType

BlockType returns the immutable stored discriminator.

func (PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocales) MarshalJSON

func (*PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocales) UnmarshalJSON

type PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocalesValue

type PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocalesValue struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Points: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Points *BlockOptional[[]string] `json:"points,omitzero"`
	// Sizes: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
	Sizes *BlockOptional[[]float64] `json:"sizes,omitzero"`
}

PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocalesValue is a generated block. Use *PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocalesValue in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create.

func (*PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocalesValue) BlockKey

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocalesValue) BlockType

BlockType returns the immutable stored discriminator.

func (PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocalesValue) MarshalJSON

func (*PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocalesValue) UnmarshalJSON

type PrimitiveProductsLocalizedBodyBlocksBlockCardInput

type PrimitiveProductsLocalizedBodyBlocksBlockCardInput struct {
	// Key identifies this occurrence; omit it for a new server-assigned identity.
	Key string `json:"_key,omitempty"`
	// Points: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Points *core.Input[[]string] `json:"points,omitempty"`
	// Sizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Sizes *core.Input[[]float64] `json:"sizes,omitempty"`
}

PrimitiveProductsLocalizedBodyBlocksBlockCardInput is a generated block. Use *PrimitiveProductsLocalizedBodyBlocksBlockCardInput in block lists and type switches. Input supplies a new occurrence's required fields. An empty Key requests a server-assigned key. Read this block as PrimitiveProductsLocalizedBodyBlocksBlockCard; edit an existing occurrence with PrimitiveProductsLocalizedBodyBlocksBlockCardUpdate.

func (*PrimitiveProductsLocalizedBodyBlocksBlockCardInput) BlockKey

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*PrimitiveProductsLocalizedBodyBlocksBlockCardInput) BlockType

BlockType returns the immutable stored discriminator.

func (PrimitiveProductsLocalizedBodyBlocksBlockCardInput) MarshalJSON

func (*PrimitiveProductsLocalizedBodyBlocksBlockCardInput) UnmarshalJSON

func (value *PrimitiveProductsLocalizedBodyBlocksBlockCardInput) UnmarshalJSON(data []byte) error

type PrimitiveProductsLocalizedBodyBlocksBlockCardUpdate

type PrimitiveProductsLocalizedBodyBlocksBlockCardUpdate struct {
	// Key is the required identity of this existing occurrence.
	Key string `json:"_key"`
	// Points: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Points *core.Input[[]string] `json:"points,omitempty"`
	// Sizes: nil omits the field; core.Set sends a value; core.Null sends explicit null.
	Sizes *core.Input[[]float64] `json:"sizes,omitempty"`
}

PrimitiveProductsLocalizedBodyBlocksBlockCardUpdate is a generated block. Use *PrimitiveProductsLocalizedBodyBlocksBlockCardUpdate in block lists and type switches. Update retains an existing occurrence by Key. Omitted children remain unchanged. The engine verifies that the key belongs to an existing occurrence of this variant. Start with the read list's Retain method; use PrimitiveProductsLocalizedBodyBlocksBlockCardInput for additions.

func (*PrimitiveProductsLocalizedBodyBlocksBlockCardUpdate) BlockKey

BlockKey returns the occurrence identity, or an empty string for a nil or new block.

func (*PrimitiveProductsLocalizedBodyBlocksBlockCardUpdate) BlockType

BlockType returns the immutable stored discriminator.

func (PrimitiveProductsLocalizedBodyBlocksBlockCardUpdate) MarshalJSON

func (*PrimitiveProductsLocalizedBodyBlocksBlockCardUpdate) UnmarshalJSON

func (value *PrimitiveProductsLocalizedBodyBlocksBlockCardUpdate) UnmarshalJSON(data []byte) error

type PrimitiveProductsLocalizedBodyBlocksBlockInput

type PrimitiveProductsLocalizedBodyBlocksBlockInput []PrimitiveProductsLocalizedBodyBlocksBlockInputBlock

PrimitiveProductsLocalizedBodyBlocksBlockInput is an ordered list of block pointers. Nil rows are invalid.

func (PrimitiveProductsLocalizedBodyBlocksBlockInput) MarshalJSON

func (*PrimitiveProductsLocalizedBodyBlocksBlockInput) UnmarshalJSON

func (rows *PrimitiveProductsLocalizedBodyBlocksBlockInput) UnmarshalJSON(data []byte) error

type PrimitiveProductsLocalizedBodyBlocksBlockInputBlock

type PrimitiveProductsLocalizedBodyBlocksBlockInputBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsLocalizedBodyBlocksBlockInputBlock admits only generated block pointers; decoding returns those same pointer types.

type PrimitiveProductsLocalizedBodyBlocksBlockInputPayload

type PrimitiveProductsLocalizedBodyBlocksBlockInputPayload struct {
	Value PrimitiveProductsLocalizedBodyBlocksBlockInputBlock
}

PrimitiveProductsLocalizedBodyBlocksBlockInputPayload is one typed detached payload, with scalar JSON encoding.

func (PrimitiveProductsLocalizedBodyBlocksBlockInputPayload) MarshalJSON

func (*PrimitiveProductsLocalizedBodyBlocksBlockInputPayload) UnmarshalJSON

type PrimitiveProductsLocalizedBodyBlocksBlockPayload

type PrimitiveProductsLocalizedBodyBlocksBlockPayload struct {
	Value PrimitiveProductsLocalizedBodyBlocksBlockBlock
}

PrimitiveProductsLocalizedBodyBlocksBlockPayload is one typed detached payload, with scalar JSON encoding.

func (PrimitiveProductsLocalizedBodyBlocksBlockPayload) MarshalJSON

func (PrimitiveProductsLocalizedBodyBlocksBlockPayload) Retain

Retain creates a key-only update for this embedded occurrence, without copying redacted, localized or populated authored fields. Use revision checks when saving.

func (*PrimitiveProductsLocalizedBodyBlocksBlockPayload) UnmarshalJSON

type PrimitiveProductsLocalizedBodyBlocksBlockUpdate

type PrimitiveProductsLocalizedBodyBlocksBlockUpdate []PrimitiveProductsLocalizedBodyBlocksBlockUpdateBlock

PrimitiveProductsLocalizedBodyBlocksBlockUpdate is an ordered list of block pointers. Nil rows are invalid. Saving this list replaces order and membership: omitted occurrences are removed. Start with a read list's Retain method to preserve untouched blocks.

func (PrimitiveProductsLocalizedBodyBlocksBlockUpdate) MarshalJSON

func (*PrimitiveProductsLocalizedBodyBlocksBlockUpdate) UnmarshalJSON

func (rows *PrimitiveProductsLocalizedBodyBlocksBlockUpdate) UnmarshalJSON(data []byte) error

type PrimitiveProductsLocalizedBodyBlocksBlockUpdateBlock

type PrimitiveProductsLocalizedBodyBlocksBlockUpdateBlock interface {
	BlockType() string
	BlockKey() string
	// contains filtered or unexported methods
}

PrimitiveProductsLocalizedBodyBlocksBlockUpdateBlock admits only generated block pointers; decoding returns those same pointer types. Use keyed Update pointers for existing occurrences and Input pointers for new occurrences.

type PrimitiveProductsLocalizedBodyBlocksBlockUpdatePayload

type PrimitiveProductsLocalizedBodyBlocksBlockUpdatePayload struct {
	Value PrimitiveProductsLocalizedBodyBlocksBlockUpdateBlock
}

PrimitiveProductsLocalizedBodyBlocksBlockUpdatePayload is one typed detached payload, with scalar JSON encoding.

func (PrimitiveProductsLocalizedBodyBlocksBlockUpdatePayload) MarshalJSON

func (*PrimitiveProductsLocalizedBodyBlocksBlockUpdatePayload) UnmarshalJSON

type Reference

type Reference[T any] struct {
	ID       string
	Document *T
}

Reference preserves canonical IDs and populated target documents.

func (Reference[T]) MarshalJSON

func (value Reference[T]) MarshalJSON() ([]byte, error)

func (*Reference[T]) UnmarshalJSON

func (value *Reference[T]) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL