Documentation
¶
Overview ¶
Code generated by Ridu. DO NOT EDIT.
Index ¶
- Constants
- Variables
- type BlockOptional
- type Card
- type CardAllLocales
- type CardAllLocalesValue
- type CardInput
- type CardUpdate
- type ContractError
- type Note
- type NoteAllLocales
- type NoteAllLocalesValue
- type NoteInput
- type NoteUpdate
- 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 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 PrimitiveProductsContentInput
- type PrimitiveProductsContentInputBlock
- 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 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 CardBlockType = "card"
CardBlockType is the immutable stored discriminator.
const NoteBlockType = "note"
NoteBlockType is the immutable stored discriminator.
Variables ¶
var PrimitiveProductsCollection = core.NewTypedCollection[PrimitiveProduct, PrimitiveProductCreate, PrimitiveProductUpdate, 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 Card ¶ added in v0.15.0
type Card 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"`
// BlockName: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
BlockName *BlockOptional[string] `json:"blockName,omitempty"`
}
Card is a generated block. Use *Card in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create. Create with CardInput. To edit, retain the read list and modify its CardUpdate pointers.
func (*Card) BlockKey ¶ added in v0.15.0
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (Card) MarshalJSON ¶ added in v0.15.0
func (*Card) UnmarshalJSON ¶ added in v0.15.0
type CardAllLocales ¶ added in v0.15.0
type CardAllLocales 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"`
// BlockName: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
BlockName *BlockOptional[string] `json:"blockName,omitempty"`
}
CardAllLocales is a generated block. Use *CardAllLocales in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create.
func (*CardAllLocales) BlockKey ¶ added in v0.15.0
func (value *CardAllLocales) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*CardAllLocales) BlockType ¶ added in v0.15.0
func (*CardAllLocales) BlockType() string
BlockType returns the immutable stored discriminator.
func (CardAllLocales) MarshalJSON ¶ added in v0.15.0
func (value CardAllLocales) MarshalJSON() ([]byte, error)
func (*CardAllLocales) UnmarshalJSON ¶ added in v0.15.0
func (value *CardAllLocales) UnmarshalJSON(data []byte) error
type CardAllLocalesValue ¶ added in v0.15.0
type CardAllLocalesValue 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"`
// BlockName: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
BlockName *BlockOptional[string] `json:"blockName,omitempty"`
}
CardAllLocalesValue is a generated block. Use *CardAllLocalesValue in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create.
func (*CardAllLocalesValue) BlockKey ¶ added in v0.15.0
func (value *CardAllLocalesValue) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*CardAllLocalesValue) BlockType ¶ added in v0.15.0
func (*CardAllLocalesValue) BlockType() string
BlockType returns the immutable stored discriminator.
func (CardAllLocalesValue) MarshalJSON ¶ added in v0.15.0
func (value CardAllLocalesValue) MarshalJSON() ([]byte, error)
func (*CardAllLocalesValue) UnmarshalJSON ¶ added in v0.15.0
func (value *CardAllLocalesValue) UnmarshalJSON(data []byte) error
type CardInput ¶ added in v0.15.0
type CardInput 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"`
// BlockName: nil omits the field; core.Set sends a value; core.Null sends explicit null.
BlockName *core.Input[string] `json:"blockName,omitempty"`
}
CardInput is a generated block. Use *CardInput 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 Card; edit an existing occurrence with CardUpdate.
func (*CardInput) BlockKey ¶ added in v0.15.0
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*CardInput) BlockType ¶ added in v0.15.0
BlockType returns the immutable stored discriminator.
func (CardInput) MarshalJSON ¶ added in v0.15.0
func (*CardInput) UnmarshalJSON ¶ added in v0.15.0
type CardUpdate ¶ added in v0.15.0
type CardUpdate 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"`
// BlockName: nil omits the field; core.Set sends a value; core.Null sends explicit null.
BlockName *core.Input[string] `json:"blockName,omitempty"`
}
CardUpdate is a generated block. Use *CardUpdate 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 CardInput for additions.
func (*CardUpdate) BlockKey ¶ added in v0.15.0
func (value *CardUpdate) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*CardUpdate) BlockType ¶ added in v0.15.0
func (*CardUpdate) BlockType() string
BlockType returns the immutable stored discriminator.
func (CardUpdate) MarshalJSON ¶ added in v0.15.0
func (value CardUpdate) MarshalJSON() ([]byte, error)
func (*CardUpdate) UnmarshalJSON ¶ added in v0.15.0
func (value *CardUpdate) 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 Note ¶ added in v0.15.0
type Note 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"`
// BlockName: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
BlockName *BlockOptional[string] `json:"blockName,omitempty"`
}
Note is a generated block. Use *Note in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create. Create with NoteInput. To edit, retain the read list and modify its NoteUpdate pointers.
func (*Note) BlockKey ¶ added in v0.15.0
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (Note) MarshalJSON ¶ added in v0.15.0
func (*Note) UnmarshalJSON ¶ added in v0.15.0
type NoteAllLocales ¶ added in v0.15.0
type NoteAllLocales 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"`
// BlockName: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
BlockName *BlockOptional[string] `json:"blockName,omitempty"`
}
NoteAllLocales is a generated block. Use *NoteAllLocales in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create.
func (*NoteAllLocales) BlockKey ¶ added in v0.15.0
func (value *NoteAllLocales) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*NoteAllLocales) BlockType ¶ added in v0.15.0
func (*NoteAllLocales) BlockType() string
BlockType returns the immutable stored discriminator.
func (NoteAllLocales) MarshalJSON ¶ added in v0.15.0
func (value NoteAllLocales) MarshalJSON() ([]byte, error)
func (*NoteAllLocales) UnmarshalJSON ¶ added in v0.15.0
func (value *NoteAllLocales) UnmarshalJSON(data []byte) error
type NoteAllLocalesValue ¶ added in v0.15.0
type NoteAllLocalesValue 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"`
// BlockName: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
BlockName *BlockOptional[string] `json:"blockName,omitempty"`
}
NoteAllLocalesValue is a generated block. Use *NoteAllLocalesValue in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create.
func (*NoteAllLocalesValue) BlockKey ¶ added in v0.15.0
func (value *NoteAllLocalesValue) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*NoteAllLocalesValue) BlockType ¶ added in v0.15.0
func (*NoteAllLocalesValue) BlockType() string
BlockType returns the immutable stored discriminator.
func (NoteAllLocalesValue) MarshalJSON ¶ added in v0.15.0
func (value NoteAllLocalesValue) MarshalJSON() ([]byte, error)
func (*NoteAllLocalesValue) UnmarshalJSON ¶ added in v0.15.0
func (value *NoteAllLocalesValue) UnmarshalJSON(data []byte) error
type NoteInput ¶ added in v0.15.0
type NoteInput 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"`
// BlockName: nil omits the field; core.Set sends a value; core.Null sends explicit null.
BlockName *core.Input[string] `json:"blockName,omitempty"`
}
NoteInput is a generated block. Use *NoteInput 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 Note; edit an existing occurrence with NoteUpdate.
func (*NoteInput) BlockKey ¶ added in v0.15.0
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*NoteInput) BlockType ¶ added in v0.15.0
BlockType returns the immutable stored discriminator.
func (NoteInput) MarshalJSON ¶ added in v0.15.0
func (*NoteInput) UnmarshalJSON ¶ added in v0.15.0
type NoteUpdate ¶ added in v0.15.0
type NoteUpdate 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"`
// BlockName: nil omits the field; core.Set sends a value; core.Null sends explicit null.
BlockName *core.Input[string] `json:"blockName,omitempty"`
}
NoteUpdate is a generated block. Use *NoteUpdate 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 NoteInput for additions.
func (*NoteUpdate) BlockKey ¶ added in v0.15.0
func (value *NoteUpdate) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*NoteUpdate) BlockType ¶ added in v0.15.0
func (*NoteUpdate) BlockType() string
BlockType returns the immutable stored discriminator.
func (NoteUpdate) MarshalJSON ¶ added in v0.15.0
func (value NoteUpdate) MarshalJSON() ([]byte, error)
func (*NoteUpdate) UnmarshalJSON ¶ added in v0.15.0
func (value *NoteUpdate) UnmarshalJSON(data []byte) 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 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 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 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 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.