Documentation
¶
Overview ¶
Code generated by Ridu. DO NOT EDIT.
Index ¶
- Constants
- Variables
- type BlockOptional
- type ContractError
- type PrimitiveProduct
- type PrimitiveProductAllLocales
- type PrimitiveProductCreate
- type PrimitiveProductUpdate
- type PrimitiveProductsBodyBlocksBlock
- type PrimitiveProductsBodyBlocksBlockAllLocales
- type PrimitiveProductsBodyBlocksBlockAllLocalesBlock
- type PrimitiveProductsBodyBlocksBlockAllLocalesPayload
- func (p PrimitiveProductsBodyBlocksBlockAllLocalesPayload) MarshalJSON() ([]byte, error)
- func (payload PrimitiveProductsBodyBlocksBlockAllLocalesPayload) Retain() (PrimitiveProductsBodyBlocksBlockUpdatePayload, error)
- func (p *PrimitiveProductsBodyBlocksBlockAllLocalesPayload) UnmarshalJSON(data []byte) error
- type PrimitiveProductsBodyBlocksBlockAllLocalesValue
- func (rows PrimitiveProductsBodyBlocksBlockAllLocalesValue) MarshalJSON() ([]byte, error)
- func (rows *PrimitiveProductsBodyBlocksBlockAllLocalesValue) Retain() (PrimitiveProductsBodyBlocksBlockUpdate, error)
- func (rows *PrimitiveProductsBodyBlocksBlockAllLocalesValue) UnmarshalJSON(data []byte) error
- type PrimitiveProductsBodyBlocksBlockAllLocalesValueBlock
- type PrimitiveProductsBodyBlocksBlockAllLocalesValuePayload
- func (p PrimitiveProductsBodyBlocksBlockAllLocalesValuePayload) MarshalJSON() ([]byte, error)
- func (payload PrimitiveProductsBodyBlocksBlockAllLocalesValuePayload) Retain() (PrimitiveProductsBodyBlocksBlockUpdatePayload, error)
- func (p *PrimitiveProductsBodyBlocksBlockAllLocalesValuePayload) UnmarshalJSON(data []byte) error
- type PrimitiveProductsBodyBlocksBlockBlock
- type PrimitiveProductsBodyBlocksBlockCard
- type PrimitiveProductsBodyBlocksBlockCardAllLocales
- func (value *PrimitiveProductsBodyBlocksBlockCardAllLocales) BlockKey() string
- func (*PrimitiveProductsBodyBlocksBlockCardAllLocales) BlockType() string
- func (value PrimitiveProductsBodyBlocksBlockCardAllLocales) MarshalJSON() ([]byte, error)
- func (value *PrimitiveProductsBodyBlocksBlockCardAllLocales) UnmarshalJSON(data []byte) error
- type PrimitiveProductsBodyBlocksBlockCardAllLocalesValue
- func (value *PrimitiveProductsBodyBlocksBlockCardAllLocalesValue) BlockKey() string
- func (*PrimitiveProductsBodyBlocksBlockCardAllLocalesValue) BlockType() string
- func (value PrimitiveProductsBodyBlocksBlockCardAllLocalesValue) MarshalJSON() ([]byte, error)
- func (value *PrimitiveProductsBodyBlocksBlockCardAllLocalesValue) UnmarshalJSON(data []byte) error
- type PrimitiveProductsBodyBlocksBlockCardInput
- func (value *PrimitiveProductsBodyBlocksBlockCardInput) BlockKey() string
- func (*PrimitiveProductsBodyBlocksBlockCardInput) BlockType() string
- func (value PrimitiveProductsBodyBlocksBlockCardInput) MarshalJSON() ([]byte, error)
- func (value *PrimitiveProductsBodyBlocksBlockCardInput) UnmarshalJSON(data []byte) error
- type PrimitiveProductsBodyBlocksBlockCardUpdate
- func (value *PrimitiveProductsBodyBlocksBlockCardUpdate) BlockKey() string
- func (*PrimitiveProductsBodyBlocksBlockCardUpdate) BlockType() string
- func (value PrimitiveProductsBodyBlocksBlockCardUpdate) MarshalJSON() ([]byte, error)
- func (value *PrimitiveProductsBodyBlocksBlockCardUpdate) UnmarshalJSON(data []byte) error
- type PrimitiveProductsBodyBlocksBlockInput
- type PrimitiveProductsBodyBlocksBlockInputBlock
- type PrimitiveProductsBodyBlocksBlockInputPayload
- type PrimitiveProductsBodyBlocksBlockPayload
- type PrimitiveProductsBodyBlocksBlockUpdate
- type PrimitiveProductsBodyBlocksBlockUpdateBlock
- type PrimitiveProductsBodyBlocksBlockUpdatePayload
- type PrimitiveProductsContent
- type PrimitiveProductsContentAllLocales
- type PrimitiveProductsContentAllLocalesBlock
- type PrimitiveProductsContentAllLocalesValue
- type PrimitiveProductsContentAllLocalesValueBlock
- type PrimitiveProductsContentBlock
- type PrimitiveProductsContentCard
- type PrimitiveProductsContentCardAllLocales
- func (value *PrimitiveProductsContentCardAllLocales) BlockKey() string
- func (*PrimitiveProductsContentCardAllLocales) BlockType() string
- func (value PrimitiveProductsContentCardAllLocales) MarshalJSON() ([]byte, error)
- func (value *PrimitiveProductsContentCardAllLocales) UnmarshalJSON(data []byte) error
- type PrimitiveProductsContentCardAllLocalesValue
- func (value *PrimitiveProductsContentCardAllLocalesValue) BlockKey() string
- func (*PrimitiveProductsContentCardAllLocalesValue) BlockType() string
- func (value PrimitiveProductsContentCardAllLocalesValue) MarshalJSON() ([]byte, error)
- func (value *PrimitiveProductsContentCardAllLocalesValue) UnmarshalJSON(data []byte) error
- type PrimitiveProductsContentCardInput
- type PrimitiveProductsContentCardUpdate
- type PrimitiveProductsContentInput
- type PrimitiveProductsContentInputBlock
- type PrimitiveProductsContentNote
- type PrimitiveProductsContentNoteAllLocales
- func (value *PrimitiveProductsContentNoteAllLocales) BlockKey() string
- func (*PrimitiveProductsContentNoteAllLocales) BlockType() string
- func (value PrimitiveProductsContentNoteAllLocales) MarshalJSON() ([]byte, error)
- func (value *PrimitiveProductsContentNoteAllLocales) UnmarshalJSON(data []byte) error
- type PrimitiveProductsContentNoteAllLocalesValue
- func (value *PrimitiveProductsContentNoteAllLocalesValue) BlockKey() string
- func (*PrimitiveProductsContentNoteAllLocalesValue) BlockType() string
- func (value PrimitiveProductsContentNoteAllLocalesValue) MarshalJSON() ([]byte, error)
- func (value *PrimitiveProductsContentNoteAllLocalesValue) UnmarshalJSON(data []byte) error
- type PrimitiveProductsContentNoteInput
- type PrimitiveProductsContentNoteUpdate
- type PrimitiveProductsContentUpdate
- type PrimitiveProductsContentUpdateBlock
- type PrimitiveProductsLocalizedBodyBlocksBlock
- type PrimitiveProductsLocalizedBodyBlocksBlockAllLocales
- func (rows PrimitiveProductsLocalizedBodyBlocksBlockAllLocales) MarshalJSON() ([]byte, error)
- func (rows *PrimitiveProductsLocalizedBodyBlocksBlockAllLocales) Retain() (PrimitiveProductsLocalizedBodyBlocksBlockUpdate, error)
- func (rows *PrimitiveProductsLocalizedBodyBlocksBlockAllLocales) UnmarshalJSON(data []byte) error
- type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesBlock
- type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesPayload
- func (p PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesPayload) MarshalJSON() ([]byte, error)
- func (payload PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesPayload) Retain() (PrimitiveProductsLocalizedBodyBlocksBlockUpdatePayload, error)
- func (p *PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesPayload) UnmarshalJSON(data []byte) error
- type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValue
- func (rows PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValue) MarshalJSON() ([]byte, error)
- func (rows *PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValue) Retain() (PrimitiveProductsLocalizedBodyBlocksBlockUpdate, error)
- func (rows *PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValue) UnmarshalJSON(data []byte) error
- type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValueBlock
- type PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValuePayload
- func (p PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValuePayload) MarshalJSON() ([]byte, error)
- func (payload PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValuePayload) Retain() (PrimitiveProductsLocalizedBodyBlocksBlockUpdatePayload, error)
- func (p *PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValuePayload) UnmarshalJSON(data []byte) error
- type PrimitiveProductsLocalizedBodyBlocksBlockBlock
- type PrimitiveProductsLocalizedBodyBlocksBlockCard
- func (value *PrimitiveProductsLocalizedBodyBlocksBlockCard) BlockKey() string
- func (*PrimitiveProductsLocalizedBodyBlocksBlockCard) BlockType() string
- func (value PrimitiveProductsLocalizedBodyBlocksBlockCard) MarshalJSON() ([]byte, error)
- func (value *PrimitiveProductsLocalizedBodyBlocksBlockCard) UnmarshalJSON(data []byte) error
- type PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocales
- func (value *PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocales) BlockKey() string
- func (*PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocales) BlockType() string
- func (value PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocales) MarshalJSON() ([]byte, error)
- func (value *PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocales) UnmarshalJSON(data []byte) error
- type PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocalesValue
- func (value *PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocalesValue) BlockKey() string
- func (*PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocalesValue) BlockType() string
- func (value PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocalesValue) MarshalJSON() ([]byte, error)
- func (value *PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocalesValue) UnmarshalJSON(data []byte) error
- type PrimitiveProductsLocalizedBodyBlocksBlockCardInput
- func (value *PrimitiveProductsLocalizedBodyBlocksBlockCardInput) BlockKey() string
- func (*PrimitiveProductsLocalizedBodyBlocksBlockCardInput) BlockType() string
- func (value PrimitiveProductsLocalizedBodyBlocksBlockCardInput) MarshalJSON() ([]byte, error)
- func (value *PrimitiveProductsLocalizedBodyBlocksBlockCardInput) UnmarshalJSON(data []byte) error
- type PrimitiveProductsLocalizedBodyBlocksBlockCardUpdate
- func (value *PrimitiveProductsLocalizedBodyBlocksBlockCardUpdate) BlockKey() string
- func (*PrimitiveProductsLocalizedBodyBlocksBlockCardUpdate) BlockType() string
- func (value PrimitiveProductsLocalizedBodyBlocksBlockCardUpdate) MarshalJSON() ([]byte, error)
- func (value *PrimitiveProductsLocalizedBodyBlocksBlockCardUpdate) UnmarshalJSON(data []byte) error
- type PrimitiveProductsLocalizedBodyBlocksBlockInput
- type PrimitiveProductsLocalizedBodyBlocksBlockInputBlock
- type PrimitiveProductsLocalizedBodyBlocksBlockInputPayload
- type PrimitiveProductsLocalizedBodyBlocksBlockPayload
- func (p PrimitiveProductsLocalizedBodyBlocksBlockPayload) MarshalJSON() ([]byte, error)
- func (payload PrimitiveProductsLocalizedBodyBlocksBlockPayload) Retain() (PrimitiveProductsLocalizedBodyBlocksBlockUpdatePayload, error)
- func (p *PrimitiveProductsLocalizedBodyBlocksBlockPayload) UnmarshalJSON(data []byte) error
- type PrimitiveProductsLocalizedBodyBlocksBlockUpdate
- type PrimitiveProductsLocalizedBodyBlocksBlockUpdateBlock
- type PrimitiveProductsLocalizedBodyBlocksBlockUpdatePayload
- type Reference
Constants ¶
const PrimitiveProductsBodyBlocksBlockCardBlockType = "card"
PrimitiveProductsBodyBlocksBlockCardBlockType is the immutable stored discriminator.
const PrimitiveProductsContentCardBlockType = "card"
PrimitiveProductsContentCardBlockType is the immutable stored discriminator.
const PrimitiveProductsContentNoteBlockType = "note"
PrimitiveProductsContentNoteBlockType is the immutable stored discriminator.
const PrimitiveProductsLocalizedBodyBlocksBlockCardBlockType = "card"
PrimitiveProductsLocalizedBodyBlocksBlockCardBlockType is the immutable stored discriminator.
Variables ¶
var PrimitiveProductsCollection = core.NewTypedCollection[PrimitiveProduct, PrimitiveProductCreate, PrimitiveProductUpdate]("primitive-products")
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 ¶
func (rows *PrimitiveProductsBodyBlocksBlock) Retain() (PrimitiveProductsBodyBlocksBlockUpdate, error)
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 ¶
func (rows *PrimitiveProductsBodyBlocksBlockAllLocales) Retain() (PrimitiveProductsBodyBlocksBlockUpdate, error)
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 (p PrimitiveProductsBodyBlocksBlockAllLocalesPayload) MarshalJSON() ([]byte, error)
func (PrimitiveProductsBodyBlocksBlockAllLocalesPayload) Retain ¶
func (payload PrimitiveProductsBodyBlocksBlockAllLocalesPayload) Retain() (PrimitiveProductsBodyBlocksBlockUpdatePayload, error)
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 ¶
func (p *PrimitiveProductsBodyBlocksBlockAllLocalesPayload) UnmarshalJSON(data []byte) error
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 (rows PrimitiveProductsBodyBlocksBlockAllLocalesValue) MarshalJSON() ([]byte, error)
func (*PrimitiveProductsBodyBlocksBlockAllLocalesValue) Retain ¶
func (rows *PrimitiveProductsBodyBlocksBlockAllLocalesValue) Retain() (PrimitiveProductsBodyBlocksBlockUpdate, error)
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 (p PrimitiveProductsBodyBlocksBlockAllLocalesValuePayload) MarshalJSON() ([]byte, error)
func (PrimitiveProductsBodyBlocksBlockAllLocalesValuePayload) Retain ¶
func (payload PrimitiveProductsBodyBlocksBlockAllLocalesValuePayload) Retain() (PrimitiveProductsBodyBlocksBlockUpdatePayload, error)
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 ¶
func (p *PrimitiveProductsBodyBlocksBlockAllLocalesValuePayload) UnmarshalJSON(data []byte) error
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 ¶
func (*PrimitiveProductsBodyBlocksBlockCard) BlockType() string
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 ¶
func (value *PrimitiveProductsBodyBlocksBlockCardAllLocales) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*PrimitiveProductsBodyBlocksBlockCardAllLocales) BlockType ¶
func (*PrimitiveProductsBodyBlocksBlockCardAllLocales) BlockType() string
BlockType returns the immutable stored discriminator.
func (PrimitiveProductsBodyBlocksBlockCardAllLocales) MarshalJSON ¶
func (value PrimitiveProductsBodyBlocksBlockCardAllLocales) MarshalJSON() ([]byte, error)
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 ¶
func (value *PrimitiveProductsBodyBlocksBlockCardAllLocalesValue) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*PrimitiveProductsBodyBlocksBlockCardAllLocalesValue) BlockType ¶
func (*PrimitiveProductsBodyBlocksBlockCardAllLocalesValue) BlockType() string
BlockType returns the immutable stored discriminator.
func (PrimitiveProductsBodyBlocksBlockCardAllLocalesValue) MarshalJSON ¶
func (value PrimitiveProductsBodyBlocksBlockCardAllLocalesValue) MarshalJSON() ([]byte, error)
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 ¶
func (value *PrimitiveProductsBodyBlocksBlockCardInput) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*PrimitiveProductsBodyBlocksBlockCardInput) BlockType ¶
func (*PrimitiveProductsBodyBlocksBlockCardInput) BlockType() string
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 ¶
func (value *PrimitiveProductsBodyBlocksBlockCardUpdate) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*PrimitiveProductsBodyBlocksBlockCardUpdate) BlockType ¶
func (*PrimitiveProductsBodyBlocksBlockCardUpdate) BlockType() string
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 (p PrimitiveProductsBodyBlocksBlockInputPayload) MarshalJSON() ([]byte, error)
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 ¶
func (payload PrimitiveProductsBodyBlocksBlockPayload) Retain() (PrimitiveProductsBodyBlocksBlockUpdatePayload, error)
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 (p PrimitiveProductsBodyBlocksBlockUpdatePayload) MarshalJSON() ([]byte, error)
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 ¶
func (rows *PrimitiveProductsContent) Retain() (PrimitiveProductsContentUpdate, error)
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 ¶
func (rows *PrimitiveProductsContentAllLocales) Retain() (PrimitiveProductsContentUpdate, error)
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 ¶
func (rows *PrimitiveProductsContentAllLocalesValue) Retain() (PrimitiveProductsContentUpdate, error)
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 ¶
func (value *PrimitiveProductsContentCardAllLocales) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*PrimitiveProductsContentCardAllLocales) BlockType ¶
func (*PrimitiveProductsContentCardAllLocales) BlockType() string
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 ¶
func (value *PrimitiveProductsContentCardAllLocalesValue) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*PrimitiveProductsContentCardAllLocalesValue) BlockType ¶
func (*PrimitiveProductsContentCardAllLocalesValue) BlockType() string
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 ¶
func (*PrimitiveProductsContentCardInput) BlockType() string
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 ¶
func (*PrimitiveProductsContentCardUpdate) BlockType() string
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 ¶
func (value *PrimitiveProductsContentNoteAllLocales) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*PrimitiveProductsContentNoteAllLocales) BlockType ¶
func (*PrimitiveProductsContentNoteAllLocales) BlockType() string
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 ¶
func (value *PrimitiveProductsContentNoteAllLocalesValue) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*PrimitiveProductsContentNoteAllLocalesValue) BlockType ¶
func (*PrimitiveProductsContentNoteAllLocalesValue) BlockType() string
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 ¶
func (*PrimitiveProductsContentNoteInput) BlockType() string
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 ¶
func (*PrimitiveProductsContentNoteUpdate) BlockType() string
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 ¶
func (rows *PrimitiveProductsLocalizedBodyBlocksBlock) Retain() (PrimitiveProductsLocalizedBodyBlocksBlockUpdate, error)
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 (rows PrimitiveProductsLocalizedBodyBlocksBlockAllLocales) MarshalJSON() ([]byte, error)
func (*PrimitiveProductsLocalizedBodyBlocksBlockAllLocales) Retain ¶
func (rows *PrimitiveProductsLocalizedBodyBlocksBlockAllLocales) Retain() (PrimitiveProductsLocalizedBodyBlocksBlockUpdate, error)
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 ¶
func (rows *PrimitiveProductsLocalizedBodyBlocksBlockAllLocales) UnmarshalJSON(data []byte) error
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 (p PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesPayload) MarshalJSON() ([]byte, error)
func (PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesPayload) Retain ¶
func (payload PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesPayload) Retain() (PrimitiveProductsLocalizedBodyBlocksBlockUpdatePayload, error)
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 ¶
func (p *PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesPayload) UnmarshalJSON(data []byte) error
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 (rows PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValue) MarshalJSON() ([]byte, error)
func (*PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValue) Retain ¶
func (rows *PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValue) Retain() (PrimitiveProductsLocalizedBodyBlocksBlockUpdate, error)
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 ¶
func (rows *PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValue) UnmarshalJSON(data []byte) error
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 (p PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValuePayload) MarshalJSON() ([]byte, error)
func (PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValuePayload) Retain ¶
func (payload PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValuePayload) Retain() (PrimitiveProductsLocalizedBodyBlocksBlockUpdatePayload, error)
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 ¶
func (p *PrimitiveProductsLocalizedBodyBlocksBlockAllLocalesValuePayload) UnmarshalJSON(data []byte) error
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 ¶
func (value *PrimitiveProductsLocalizedBodyBlocksBlockCard) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*PrimitiveProductsLocalizedBodyBlocksBlockCard) BlockType ¶
func (*PrimitiveProductsLocalizedBodyBlocksBlockCard) BlockType() string
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 ¶
func (value *PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocales) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocales) BlockType ¶
func (*PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocales) BlockType() string
BlockType returns the immutable stored discriminator.
func (PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocales) MarshalJSON ¶
func (value PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocales) MarshalJSON() ([]byte, error)
func (*PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocales) UnmarshalJSON ¶
func (value *PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocales) UnmarshalJSON(data []byte) error
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 ¶
func (value *PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocalesValue) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocalesValue) BlockType ¶
func (*PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocalesValue) BlockType() string
BlockType returns the immutable stored discriminator.
func (PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocalesValue) MarshalJSON ¶
func (value PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocalesValue) MarshalJSON() ([]byte, error)
func (*PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocalesValue) UnmarshalJSON ¶
func (value *PrimitiveProductsLocalizedBodyBlocksBlockCardAllLocalesValue) UnmarshalJSON(data []byte) error
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 ¶
func (value *PrimitiveProductsLocalizedBodyBlocksBlockCardInput) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*PrimitiveProductsLocalizedBodyBlocksBlockCardInput) BlockType ¶
func (*PrimitiveProductsLocalizedBodyBlocksBlockCardInput) BlockType() string
BlockType returns the immutable stored discriminator.
func (PrimitiveProductsLocalizedBodyBlocksBlockCardInput) MarshalJSON ¶
func (value PrimitiveProductsLocalizedBodyBlocksBlockCardInput) MarshalJSON() ([]byte, error)
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 ¶
func (value *PrimitiveProductsLocalizedBodyBlocksBlockCardUpdate) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*PrimitiveProductsLocalizedBodyBlocksBlockCardUpdate) BlockType ¶
func (*PrimitiveProductsLocalizedBodyBlocksBlockCardUpdate) BlockType() string
BlockType returns the immutable stored discriminator.
func (PrimitiveProductsLocalizedBodyBlocksBlockCardUpdate) MarshalJSON ¶
func (value PrimitiveProductsLocalizedBodyBlocksBlockCardUpdate) MarshalJSON() ([]byte, error)
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 (rows PrimitiveProductsLocalizedBodyBlocksBlockInput) MarshalJSON() ([]byte, error)
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 (p PrimitiveProductsLocalizedBodyBlocksBlockInputPayload) MarshalJSON() ([]byte, error)
func (*PrimitiveProductsLocalizedBodyBlocksBlockInputPayload) UnmarshalJSON ¶
func (p *PrimitiveProductsLocalizedBodyBlocksBlockInputPayload) UnmarshalJSON(data []byte) error
type PrimitiveProductsLocalizedBodyBlocksBlockPayload ¶
type PrimitiveProductsLocalizedBodyBlocksBlockPayload struct {
Value PrimitiveProductsLocalizedBodyBlocksBlockBlock
}
PrimitiveProductsLocalizedBodyBlocksBlockPayload is one typed detached payload, with scalar JSON encoding.
func (PrimitiveProductsLocalizedBodyBlocksBlockPayload) MarshalJSON ¶
func (p PrimitiveProductsLocalizedBodyBlocksBlockPayload) MarshalJSON() ([]byte, error)
func (PrimitiveProductsLocalizedBodyBlocksBlockPayload) Retain ¶
func (payload PrimitiveProductsLocalizedBodyBlocksBlockPayload) Retain() (PrimitiveProductsLocalizedBodyBlocksBlockUpdatePayload, error)
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 ¶
func (p *PrimitiveProductsLocalizedBodyBlocksBlockPayload) UnmarshalJSON(data []byte) error
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 (rows PrimitiveProductsLocalizedBodyBlocksBlockUpdate) MarshalJSON() ([]byte, error)
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 (p PrimitiveProductsLocalizedBodyBlocksBlockUpdatePayload) MarshalJSON() ([]byte, error)
func (*PrimitiveProductsLocalizedBodyBlocksBlockUpdatePayload) UnmarshalJSON ¶
func (p *PrimitiveProductsLocalizedBodyBlocksBlockUpdatePayload) UnmarshalJSON(data []byte) error
type Reference ¶
Reference preserves canonical IDs and populated target documents.