Documentation
¶
Overview ¶
Code generated by Ridu. DO NOT EDIT.
Index ¶
- Constants
- Variables
- type BlockOptional
- type ContractError
- type Reference
- type UnifiedArticle
- type UnifiedArticleAllLocales
- type UnifiedArticleCreate
- type UnifiedArticleUpdate
- type UnifiedArticlesBodyBlocksBlock
- type UnifiedArticlesBodyBlocksBlockAllLocales
- type UnifiedArticlesBodyBlocksBlockAllLocalesBlock
- type UnifiedArticlesBodyBlocksBlockAllLocalesPayload
- func (p UnifiedArticlesBodyBlocksBlockAllLocalesPayload) MarshalJSON() ([]byte, error)
- func (payload UnifiedArticlesBodyBlocksBlockAllLocalesPayload) Retain() (UnifiedArticlesBodyBlocksBlockUpdatePayload, error)
- func (p *UnifiedArticlesBodyBlocksBlockAllLocalesPayload) UnmarshalJSON(data []byte) error
- type UnifiedArticlesBodyBlocksBlockAllLocalesValue
- type UnifiedArticlesBodyBlocksBlockAllLocalesValueBlock
- type UnifiedArticlesBodyBlocksBlockAllLocalesValuePayload
- func (p UnifiedArticlesBodyBlocksBlockAllLocalesValuePayload) MarshalJSON() ([]byte, error)
- func (payload UnifiedArticlesBodyBlocksBlockAllLocalesValuePayload) Retain() (UnifiedArticlesBodyBlocksBlockUpdatePayload, error)
- func (p *UnifiedArticlesBodyBlocksBlockAllLocalesValuePayload) UnmarshalJSON(data []byte) error
- type UnifiedArticlesBodyBlocksBlockBlock
- type UnifiedArticlesBodyBlocksBlockInput
- type UnifiedArticlesBodyBlocksBlockInputBlock
- type UnifiedArticlesBodyBlocksBlockInputPayload
- type UnifiedArticlesBodyBlocksBlockPayload
- type UnifiedArticlesBodyBlocksBlockUpdate
- type UnifiedArticlesBodyBlocksBlockUpdateBlock
- type UnifiedArticlesBodyBlocksBlockUpdatePayload
- type UnifiedArticlesContent
- type UnifiedArticlesContentAllLocales
- type UnifiedArticlesContentAllLocalesBlock
- type UnifiedArticlesContentAllLocalesValue
- type UnifiedArticlesContentAllLocalesValueBlock
- type UnifiedArticlesContentBlock
- type UnifiedArticlesContentInput
- type UnifiedArticlesContentInputBlock
- type UnifiedArticlesContentUpdate
- type UnifiedArticlesContentUpdateBlock
- type UnifiedCard
- type UnifiedCardAllLocales
- type UnifiedCardAllLocalesValue
- type UnifiedCardInput
- type UnifiedCardProducts
- type UnifiedCardProductsAllLocales
- type UnifiedCardProductsAllLocalesValue
- type UnifiedCardProductsRow
- type UnifiedCardProductsRowAllLocales
- type UnifiedCardProductsRowAllLocalesValue
- type UnifiedCardProductsRowInput
- type UnifiedCardProductsRowUpdate
- type UnifiedCardProductsUpdate
- type UnifiedCardProductsUpdateRow
- type UnifiedCardUpdate
- type UnifiedNote
- type UnifiedNoteAllLocales
- type UnifiedNoteAllLocalesValue
- type UnifiedNoteInput
- type UnifiedNoteUpdate
- type User
- type UserAllLocales
- type UserCreate
- type UserUpdate
Constants ¶
const UnifiedCardBlockType = "unified-card"
UnifiedCardBlockType is the immutable stored discriminator.
const UnifiedNoteBlockType = "unified-note"
UnifiedNoteBlockType is the immutable stored discriminator.
Variables ¶
var UnifiedArticlesCollection = core.NewTypedCollection[UnifiedArticle, UnifiedArticleCreate, UnifiedArticleUpdate, UnifiedArticleUpdate]("unified-articles")
var UnifiedArticlesCollectionAllLocales = core.NewTypedAllLocalesCollection[UnifiedArticleAllLocales]("unified-articles")
UnifiedArticlesCollectionAllLocales reads all translations with optional population and projection.
var UsersCollection = core.NewTypedCollection[User, UserCreate, UserUpdate, UserUpdate]("users")
var UsersCollectionAllLocales = core.NewTypedAllLocalesCollection[UserAllLocales]("users")
UsersCollectionAllLocales 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 Reference ¶
Reference preserves canonical IDs and populated target documents.
func (Reference[T]) MarshalJSON ¶
func (*Reference[T]) UnmarshalJSON ¶
type UnifiedArticle ¶
type UnifiedArticle struct {
ID string `json:"id"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
// Title may be omitted by access rules or projection.
Title *string `json:"title,omitempty"`
// Sku may be omitted by access rules or projection.
Sku *string `json:"sku,omitempty"`
// Defaulted may be omitted by access rules or projection.
Defaulted *string `json:"defaulted,omitempty"`
// Meta may be omitted by access rules or projection.
Meta *struct {
// Description may be omitted by access rules or projection.
Description *string `json:"description,omitempty"`
// Accent may be omitted by access rules or projection.
Accent *string `json:"accent,omitempty"`
} `json:"meta,omitempty"`
// Sections may be omitted by access rules or projection.
Sections []struct {
Key string `json:"_key"`
// Label may be omitted by access rules or projection.
Label *string `json:"label,omitempty"`
// Sku may be omitted by access rules or projection.
Sku *string `json:"sku,omitempty"`
// Accent may be omitted by access rules or projection.
Accent *string `json:"accent,omitempty"`
// Products may be omitted by access rules or projection.
Products []struct {
Key string `json:"_key"`
// Label may be omitted by access rules or projection.
Label *string `json:"label,omitempty"`
// Sku may be omitted by access rules or projection.
Sku *string `json:"sku,omitempty"`
// Accent may be omitted by access rules or projection.
Accent *string `json:"accent,omitempty"`
} `json:"products,omitempty"`
} `json:"sections,omitempty"`
// Content may be omitted by access rules or projection.
Content *UnifiedArticlesContent `json:"content,omitempty"`
// Author may be omitted by access rules or projection.
Author *Reference[User] `json:"author,omitempty"`
// Accent may be omitted by access rules or projection.
Accent *string `json:"accent,omitempty"`
// LocalizedAccent may be omitted by access rules or projection.
LocalizedAccent *string `json:"localizedAccent,omitempty"`
// LocalizedTitle may be omitted by access rules or projection.
LocalizedTitle *string `json:"localizedTitle,omitempty"`
// LocalizedMeta may be omitted by access rules or projection.
LocalizedMeta *struct {
// Description may be omitted by access rules or projection.
Description *string `json:"description,omitempty"`
} `json:"localizedMeta,omitempty"`
// PrivateNote may be omitted by access rules or projection.
PrivateNote *string `json:"privateNote,omitempty"`
// PresentationHidden may be omitted by access rules or projection.
PresentationHidden *string `json:"presentationHidden,omitempty"`
// Body may be omitted by access rules or projection.
Body *richtext.Document[UnifiedArticlesBodyBlocksBlockPayload] `json:"body,omitempty"`
// Summary may be omitted by access rules or projection.
Summary *string `json:"summary,omitempty"`
}
UnifiedArticle is a single-locale read. Authored fields can be omitted by access rules or projection.
func (*UnifiedArticle) UnmarshalJSON ¶
func (value *UnifiedArticle) UnmarshalJSON(data []byte) error
type UnifiedArticleAllLocales ¶
type UnifiedArticleAllLocales struct {
ID string `json:"id"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
// Title may be omitted by access rules or projection.
Title *string `json:"title,omitempty"`
// Sku may be omitted by access rules or projection.
Sku *string `json:"sku,omitempty"`
// Defaulted may be omitted by access rules or projection.
Defaulted *string `json:"defaulted,omitempty"`
// Meta may be omitted by access rules or projection.
Meta *struct {
// Description may be omitted by access rules or projection.
Description *string `json:"description,omitempty"`
// Accent may be omitted by access rules or projection.
Accent *string `json:"accent,omitempty"`
} `json:"meta,omitempty"`
// Sections may be omitted by access rules or projection.
Sections []struct {
Key string `json:"_key"`
// Label may be omitted by access rules or projection.
Label *string `json:"label,omitempty"`
// Sku may be omitted by access rules or projection.
Sku *string `json:"sku,omitempty"`
// Accent may be omitted by access rules or projection.
Accent *string `json:"accent,omitempty"`
// Products may be omitted by access rules or projection.
Products []struct {
Key string `json:"_key"`
// Label may be omitted by access rules or projection.
Label *string `json:"label,omitempty"`
// Sku may be omitted by access rules or projection.
Sku *string `json:"sku,omitempty"`
// Accent may be omitted by access rules or projection.
Accent *string `json:"accent,omitempty"`
} `json:"products,omitempty"`
} `json:"sections,omitempty"`
// Content may be omitted by access rules or projection.
Content *UnifiedArticlesContentAllLocales `json:"content,omitempty"`
// Author may be omitted by access rules or projection.
Author *Reference[UserAllLocales] `json:"author,omitempty"`
// Accent may be omitted by access rules or projection.
Accent *string `json:"accent,omitempty"`
// LocalizedAccent may be omitted by access rules or projection.
// Locale-code map; missing locales are absent translations.
LocalizedAccent *map[string]*string `json:"localizedAccent,omitempty"`
// LocalizedTitle may be omitted by access rules or projection.
// Locale-code map; missing locales are absent translations.
LocalizedTitle *map[string]*string `json:"localizedTitle,omitempty"`
// LocalizedMeta may be omitted by access rules or projection.
LocalizedMeta *struct {
// Description may be omitted by access rules or projection.
// Locale-code map; missing locales are absent translations.
Description *map[string]*string `json:"description,omitempty"`
} `json:"localizedMeta,omitempty"`
// PrivateNote may be omitted by access rules or projection.
PrivateNote *string `json:"privateNote,omitempty"`
// PresentationHidden may be omitted by access rules or projection.
PresentationHidden *string `json:"presentationHidden,omitempty"`
// Body may be omitted by access rules or projection.
Body *richtext.Document[UnifiedArticlesBodyBlocksBlockAllLocalesPayload] `json:"body,omitempty"`
// Summary may be omitted by access rules or projection.
Summary *string `json:"summary,omitempty"`
}
UnifiedArticleAllLocales is an all-locales read: localized fields contain locale-code maps.
func (*UnifiedArticleAllLocales) UnmarshalJSON ¶
func (value *UnifiedArticleAllLocales) UnmarshalJSON(data []byte) error
type UnifiedArticleCreate ¶
type UnifiedArticleCreate struct {
// Title is required when creating this value.
Title string `json:"title"`
// Sku: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Sku *core.Input[string] `json:"sku,omitempty"`
// Defaulted: nil omits the field; a pointer sends a value. Null is not allowed.
Defaulted *string `json:"defaulted,omitempty"`
// Meta: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Meta *core.Input[struct {
// Description: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Description *core.Input[string] `json:"description,omitempty"`
// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Accent *core.Input[string] `json:"accent,omitempty"`
}] `json:"meta,omitempty"`
// Sections: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Sections *core.Input[[]struct {
Key string `json:"_key,omitempty"`
// Label: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Label *core.Input[string] `json:"label,omitempty"`
// Sku: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Sku *core.Input[string] `json:"sku,omitempty"`
// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Accent *core.Input[string] `json:"accent,omitempty"`
// Products: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Products *core.Input[[]struct {
Key string `json:"_key,omitempty"`
// Label: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Label *core.Input[string] `json:"label,omitempty"`
// Sku: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Sku *core.Input[string] `json:"sku,omitempty"`
// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Accent *core.Input[string] `json:"accent,omitempty"`
}] `json:"products,omitempty"`
}] `json:"sections,omitempty"`
// Content: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Content *core.Input[UnifiedArticlesContentInput] `json:"content,omitempty"`
// Author: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Author *core.Input[string] `json:"author,omitempty"`
// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Accent *core.Input[string] `json:"accent,omitempty"`
// LocalizedAccent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
LocalizedAccent *core.Input[string] `json:"localizedAccent,omitempty"`
// LocalizedTitle: nil omits the field; core.Set sends a value; core.Null sends explicit null.
LocalizedTitle *core.Input[string] `json:"localizedTitle,omitempty"`
// LocalizedMeta: nil omits the field; core.Set sends a value; core.Null sends explicit null.
LocalizedMeta *core.Input[struct {
// Description: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Description *core.Input[string] `json:"description,omitempty"`
}] `json:"localizedMeta,omitempty"`
// PrivateNote: nil omits the field; core.Set sends a value; core.Null sends explicit null.
PrivateNote *core.Input[string] `json:"privateNote,omitempty"`
// PresentationHidden: nil omits the field; core.Set sends a value; core.Null sends explicit null.
PresentationHidden *core.Input[string] `json:"presentationHidden,omitempty"`
// Body: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Body *core.Input[richtext.Document[UnifiedArticlesBodyBlocksBlockInputPayload]] `json:"body,omitempty"`
}
UnifiedArticleCreate supplies a new document. Required values are concrete; defaulted values may be omitted, and nullable values use core.Set or core.Null.
func (*UnifiedArticleCreate) UnmarshalJSON ¶
func (value *UnifiedArticleCreate) UnmarshalJSON(data []byte) error
type UnifiedArticleUpdate ¶
type UnifiedArticleUpdate struct {
// Title: nil omits the field; a pointer sends a value. Null is not allowed.
Title *string `json:"title,omitempty"`
// Sku: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Sku *core.Input[string] `json:"sku,omitempty"`
// Defaulted: nil omits the field; a pointer sends a value. Null is not allowed.
Defaulted *string `json:"defaulted,omitempty"`
// Meta: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Meta *core.Input[struct {
// Description: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Description *core.Input[string] `json:"description,omitempty"`
// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Accent *core.Input[string] `json:"accent,omitempty"`
}] `json:"meta,omitempty"`
// Sections: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Sections *core.Input[[]struct {
Key string `json:"_key,omitempty"`
// Label: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Label *core.Input[string] `json:"label,omitempty"`
// Sku: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Sku *core.Input[string] `json:"sku,omitempty"`
// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Accent *core.Input[string] `json:"accent,omitempty"`
// Products: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Products *core.Input[[]struct {
Key string `json:"_key,omitempty"`
// Label: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Label *core.Input[string] `json:"label,omitempty"`
// Sku: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Sku *core.Input[string] `json:"sku,omitempty"`
// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Accent *core.Input[string] `json:"accent,omitempty"`
}] `json:"products,omitempty"`
}] `json:"sections,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[UnifiedArticlesContentUpdate] `json:"content,omitempty"`
// Author: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Author *core.Input[string] `json:"author,omitempty"`
// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Accent *core.Input[string] `json:"accent,omitempty"`
// LocalizedAccent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
LocalizedAccent *core.Input[string] `json:"localizedAccent,omitempty"`
// LocalizedTitle: nil omits the field; core.Set sends a value; core.Null sends explicit null.
LocalizedTitle *core.Input[string] `json:"localizedTitle,omitempty"`
// LocalizedMeta: nil omits the field; core.Set sends a value; core.Null sends explicit null.
LocalizedMeta *core.Input[struct {
// Description: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Description *core.Input[string] `json:"description,omitempty"`
}] `json:"localizedMeta,omitempty"`
// PrivateNote: nil omits the field; core.Set sends a value; core.Null sends explicit null.
PrivateNote *core.Input[string] `json:"privateNote,omitempty"`
// PresentationHidden: nil omits the field; core.Set sends a value; core.Null sends explicit null.
PresentationHidden *core.Input[string] `json:"presentationHidden,omitempty"`
// Body: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Body *core.Input[richtext.Document[UnifiedArticlesBodyBlocksBlockUpdatePayload]] `json:"body,omitempty"`
}
UnifiedArticleUpdate edits a document. Nil fields are unchanged; supplied block lists replace order and membership.
func (*UnifiedArticleUpdate) UnmarshalJSON ¶
func (value *UnifiedArticleUpdate) UnmarshalJSON(data []byte) error
type UnifiedArticlesBodyBlocksBlock ¶
type UnifiedArticlesBodyBlocksBlock []UnifiedArticlesBodyBlocksBlockBlock
UnifiedArticlesBodyBlocksBlock is an ordered list of block pointers. Nil rows are invalid.
func (UnifiedArticlesBodyBlocksBlock) MarshalJSON ¶
func (rows UnifiedArticlesBodyBlocksBlock) MarshalJSON() ([]byte, error)
func (*UnifiedArticlesBodyBlocksBlock) Retain ¶
func (rows *UnifiedArticlesBodyBlocksBlock) Retain() (UnifiedArticlesBodyBlocksBlockUpdate, 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 (*UnifiedArticlesBodyBlocksBlock) UnmarshalJSON ¶
func (rows *UnifiedArticlesBodyBlocksBlock) UnmarshalJSON(data []byte) error
type UnifiedArticlesBodyBlocksBlockAllLocales ¶
type UnifiedArticlesBodyBlocksBlockAllLocales []UnifiedArticlesBodyBlocksBlockAllLocalesBlock
UnifiedArticlesBodyBlocksBlockAllLocales 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 (UnifiedArticlesBodyBlocksBlockAllLocales) MarshalJSON ¶
func (rows UnifiedArticlesBodyBlocksBlockAllLocales) MarshalJSON() ([]byte, error)
func (*UnifiedArticlesBodyBlocksBlockAllLocales) Retain ¶
func (rows *UnifiedArticlesBodyBlocksBlockAllLocales) Retain() (UnifiedArticlesBodyBlocksBlockUpdate, 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 (*UnifiedArticlesBodyBlocksBlockAllLocales) UnmarshalJSON ¶
func (rows *UnifiedArticlesBodyBlocksBlockAllLocales) UnmarshalJSON(data []byte) error
type UnifiedArticlesBodyBlocksBlockAllLocalesBlock ¶
type UnifiedArticlesBodyBlocksBlockAllLocalesBlock interface {
BlockType() string
BlockKey() string
// contains filtered or unexported methods
}
UnifiedArticlesBodyBlocksBlockAllLocalesBlock admits only generated block pointers; decoding returns those same pointer types.
type UnifiedArticlesBodyBlocksBlockAllLocalesPayload ¶
type UnifiedArticlesBodyBlocksBlockAllLocalesPayload struct {
Value UnifiedArticlesBodyBlocksBlockAllLocalesBlock
}
UnifiedArticlesBodyBlocksBlockAllLocalesPayload is one typed detached payload, with scalar JSON encoding.
func (UnifiedArticlesBodyBlocksBlockAllLocalesPayload) MarshalJSON ¶
func (p UnifiedArticlesBodyBlocksBlockAllLocalesPayload) MarshalJSON() ([]byte, error)
func (UnifiedArticlesBodyBlocksBlockAllLocalesPayload) Retain ¶
func (payload UnifiedArticlesBodyBlocksBlockAllLocalesPayload) Retain() (UnifiedArticlesBodyBlocksBlockUpdatePayload, 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 (*UnifiedArticlesBodyBlocksBlockAllLocalesPayload) UnmarshalJSON ¶
func (p *UnifiedArticlesBodyBlocksBlockAllLocalesPayload) UnmarshalJSON(data []byte) error
type UnifiedArticlesBodyBlocksBlockAllLocalesValue ¶
type UnifiedArticlesBodyBlocksBlockAllLocalesValue []UnifiedArticlesBodyBlocksBlockAllLocalesValueBlock
UnifiedArticlesBodyBlocksBlockAllLocalesValue 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 (UnifiedArticlesBodyBlocksBlockAllLocalesValue) MarshalJSON ¶
func (rows UnifiedArticlesBodyBlocksBlockAllLocalesValue) MarshalJSON() ([]byte, error)
func (*UnifiedArticlesBodyBlocksBlockAllLocalesValue) Retain ¶
func (rows *UnifiedArticlesBodyBlocksBlockAllLocalesValue) Retain() (UnifiedArticlesBodyBlocksBlockUpdate, 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 (*UnifiedArticlesBodyBlocksBlockAllLocalesValue) UnmarshalJSON ¶
func (rows *UnifiedArticlesBodyBlocksBlockAllLocalesValue) UnmarshalJSON(data []byte) error
type UnifiedArticlesBodyBlocksBlockAllLocalesValueBlock ¶
type UnifiedArticlesBodyBlocksBlockAllLocalesValueBlock interface {
BlockType() string
BlockKey() string
// contains filtered or unexported methods
}
UnifiedArticlesBodyBlocksBlockAllLocalesValueBlock admits only generated block pointers; decoding returns those same pointer types.
type UnifiedArticlesBodyBlocksBlockAllLocalesValuePayload ¶
type UnifiedArticlesBodyBlocksBlockAllLocalesValuePayload struct {
Value UnifiedArticlesBodyBlocksBlockAllLocalesValueBlock
}
UnifiedArticlesBodyBlocksBlockAllLocalesValuePayload is one typed detached payload, with scalar JSON encoding.
func (UnifiedArticlesBodyBlocksBlockAllLocalesValuePayload) MarshalJSON ¶
func (p UnifiedArticlesBodyBlocksBlockAllLocalesValuePayload) MarshalJSON() ([]byte, error)
func (UnifiedArticlesBodyBlocksBlockAllLocalesValuePayload) Retain ¶
func (payload UnifiedArticlesBodyBlocksBlockAllLocalesValuePayload) Retain() (UnifiedArticlesBodyBlocksBlockUpdatePayload, 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 (*UnifiedArticlesBodyBlocksBlockAllLocalesValuePayload) UnmarshalJSON ¶
func (p *UnifiedArticlesBodyBlocksBlockAllLocalesValuePayload) UnmarshalJSON(data []byte) error
type UnifiedArticlesBodyBlocksBlockBlock ¶
type UnifiedArticlesBodyBlocksBlockBlock interface {
BlockType() string
BlockKey() string
// contains filtered or unexported methods
}
UnifiedArticlesBodyBlocksBlockBlock admits only generated block pointers; decoding returns those same pointer types.
type UnifiedArticlesBodyBlocksBlockInput ¶
type UnifiedArticlesBodyBlocksBlockInput []UnifiedArticlesBodyBlocksBlockInputBlock
UnifiedArticlesBodyBlocksBlockInput is an ordered list of block pointers. Nil rows are invalid.
func (UnifiedArticlesBodyBlocksBlockInput) MarshalJSON ¶
func (rows UnifiedArticlesBodyBlocksBlockInput) MarshalJSON() ([]byte, error)
func (*UnifiedArticlesBodyBlocksBlockInput) UnmarshalJSON ¶
func (rows *UnifiedArticlesBodyBlocksBlockInput) UnmarshalJSON(data []byte) error
type UnifiedArticlesBodyBlocksBlockInputBlock ¶
type UnifiedArticlesBodyBlocksBlockInputBlock interface {
BlockType() string
BlockKey() string
// contains filtered or unexported methods
}
UnifiedArticlesBodyBlocksBlockInputBlock admits only generated block pointers; decoding returns those same pointer types.
type UnifiedArticlesBodyBlocksBlockInputPayload ¶
type UnifiedArticlesBodyBlocksBlockInputPayload struct {
Value UnifiedArticlesBodyBlocksBlockInputBlock
}
UnifiedArticlesBodyBlocksBlockInputPayload is one typed detached payload, with scalar JSON encoding.
func (UnifiedArticlesBodyBlocksBlockInputPayload) MarshalJSON ¶
func (p UnifiedArticlesBodyBlocksBlockInputPayload) MarshalJSON() ([]byte, error)
func (*UnifiedArticlesBodyBlocksBlockInputPayload) UnmarshalJSON ¶
func (p *UnifiedArticlesBodyBlocksBlockInputPayload) UnmarshalJSON(data []byte) error
type UnifiedArticlesBodyBlocksBlockPayload ¶
type UnifiedArticlesBodyBlocksBlockPayload struct {
Value UnifiedArticlesBodyBlocksBlockBlock
}
UnifiedArticlesBodyBlocksBlockPayload is one typed detached payload, with scalar JSON encoding.
func (UnifiedArticlesBodyBlocksBlockPayload) MarshalJSON ¶
func (p UnifiedArticlesBodyBlocksBlockPayload) MarshalJSON() ([]byte, error)
func (UnifiedArticlesBodyBlocksBlockPayload) Retain ¶
func (payload UnifiedArticlesBodyBlocksBlockPayload) Retain() (UnifiedArticlesBodyBlocksBlockUpdatePayload, 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 (*UnifiedArticlesBodyBlocksBlockPayload) UnmarshalJSON ¶
func (p *UnifiedArticlesBodyBlocksBlockPayload) UnmarshalJSON(data []byte) error
type UnifiedArticlesBodyBlocksBlockUpdate ¶
type UnifiedArticlesBodyBlocksBlockUpdate []UnifiedArticlesBodyBlocksBlockUpdateBlock
UnifiedArticlesBodyBlocksBlockUpdate 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 (UnifiedArticlesBodyBlocksBlockUpdate) MarshalJSON ¶
func (rows UnifiedArticlesBodyBlocksBlockUpdate) MarshalJSON() ([]byte, error)
func (*UnifiedArticlesBodyBlocksBlockUpdate) UnmarshalJSON ¶
func (rows *UnifiedArticlesBodyBlocksBlockUpdate) UnmarshalJSON(data []byte) error
type UnifiedArticlesBodyBlocksBlockUpdateBlock ¶
type UnifiedArticlesBodyBlocksBlockUpdateBlock interface {
BlockType() string
BlockKey() string
// contains filtered or unexported methods
}
UnifiedArticlesBodyBlocksBlockUpdateBlock 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 UnifiedArticlesBodyBlocksBlockUpdatePayload ¶
type UnifiedArticlesBodyBlocksBlockUpdatePayload struct {
Value UnifiedArticlesBodyBlocksBlockUpdateBlock
}
UnifiedArticlesBodyBlocksBlockUpdatePayload is one typed detached payload, with scalar JSON encoding.
func (UnifiedArticlesBodyBlocksBlockUpdatePayload) MarshalJSON ¶
func (p UnifiedArticlesBodyBlocksBlockUpdatePayload) MarshalJSON() ([]byte, error)
func (*UnifiedArticlesBodyBlocksBlockUpdatePayload) UnmarshalJSON ¶
func (p *UnifiedArticlesBodyBlocksBlockUpdatePayload) UnmarshalJSON(data []byte) error
type UnifiedArticlesContent ¶
type UnifiedArticlesContent []UnifiedArticlesContentBlock
UnifiedArticlesContent is an ordered list of block pointers. Nil rows are invalid.
func (UnifiedArticlesContent) MarshalJSON ¶
func (rows UnifiedArticlesContent) MarshalJSON() ([]byte, error)
func (*UnifiedArticlesContent) Retain ¶
func (rows *UnifiedArticlesContent) Retain() (UnifiedArticlesContentUpdate, 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 (*UnifiedArticlesContent) UnmarshalJSON ¶
func (rows *UnifiedArticlesContent) UnmarshalJSON(data []byte) error
type UnifiedArticlesContentAllLocales ¶
type UnifiedArticlesContentAllLocales []UnifiedArticlesContentAllLocalesBlock
UnifiedArticlesContentAllLocales 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 (UnifiedArticlesContentAllLocales) MarshalJSON ¶
func (rows UnifiedArticlesContentAllLocales) MarshalJSON() ([]byte, error)
func (*UnifiedArticlesContentAllLocales) Retain ¶
func (rows *UnifiedArticlesContentAllLocales) Retain() (UnifiedArticlesContentUpdate, 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 (*UnifiedArticlesContentAllLocales) UnmarshalJSON ¶
func (rows *UnifiedArticlesContentAllLocales) UnmarshalJSON(data []byte) error
type UnifiedArticlesContentAllLocalesBlock ¶
type UnifiedArticlesContentAllLocalesBlock interface {
BlockType() string
BlockKey() string
// contains filtered or unexported methods
}
UnifiedArticlesContentAllLocalesBlock admits only generated block pointers; decoding returns those same pointer types.
type UnifiedArticlesContentAllLocalesValue ¶
type UnifiedArticlesContentAllLocalesValue []UnifiedArticlesContentAllLocalesValueBlock
UnifiedArticlesContentAllLocalesValue 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 (UnifiedArticlesContentAllLocalesValue) MarshalJSON ¶
func (rows UnifiedArticlesContentAllLocalesValue) MarshalJSON() ([]byte, error)
func (*UnifiedArticlesContentAllLocalesValue) Retain ¶
func (rows *UnifiedArticlesContentAllLocalesValue) Retain() (UnifiedArticlesContentUpdate, 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 (*UnifiedArticlesContentAllLocalesValue) UnmarshalJSON ¶
func (rows *UnifiedArticlesContentAllLocalesValue) UnmarshalJSON(data []byte) error
type UnifiedArticlesContentAllLocalesValueBlock ¶
type UnifiedArticlesContentAllLocalesValueBlock interface {
BlockType() string
BlockKey() string
// contains filtered or unexported methods
}
UnifiedArticlesContentAllLocalesValueBlock admits only generated block pointers; decoding returns those same pointer types.
type UnifiedArticlesContentBlock ¶
type UnifiedArticlesContentBlock interface {
BlockType() string
BlockKey() string
// contains filtered or unexported methods
}
UnifiedArticlesContentBlock admits only generated block pointers; decoding returns those same pointer types.
type UnifiedArticlesContentInput ¶
type UnifiedArticlesContentInput []UnifiedArticlesContentInputBlock
UnifiedArticlesContentInput is an ordered list of block pointers. Nil rows are invalid.
func (UnifiedArticlesContentInput) MarshalJSON ¶
func (rows UnifiedArticlesContentInput) MarshalJSON() ([]byte, error)
func (*UnifiedArticlesContentInput) UnmarshalJSON ¶
func (rows *UnifiedArticlesContentInput) UnmarshalJSON(data []byte) error
type UnifiedArticlesContentInputBlock ¶
type UnifiedArticlesContentInputBlock interface {
BlockType() string
BlockKey() string
// contains filtered or unexported methods
}
UnifiedArticlesContentInputBlock admits only generated block pointers; decoding returns those same pointer types.
type UnifiedArticlesContentUpdate ¶
type UnifiedArticlesContentUpdate []UnifiedArticlesContentUpdateBlock
UnifiedArticlesContentUpdate 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 (UnifiedArticlesContentUpdate) MarshalJSON ¶
func (rows UnifiedArticlesContentUpdate) MarshalJSON() ([]byte, error)
func (*UnifiedArticlesContentUpdate) UnmarshalJSON ¶
func (rows *UnifiedArticlesContentUpdate) UnmarshalJSON(data []byte) error
type UnifiedArticlesContentUpdateBlock ¶
type UnifiedArticlesContentUpdateBlock interface {
BlockType() string
BlockKey() string
// contains filtered or unexported methods
}
UnifiedArticlesContentUpdateBlock 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 UnifiedCard ¶ added in v0.15.0
type UnifiedCard struct {
// Key is the required identity of this existing occurrence.
Key string `json:"_key"`
// Label: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Label *BlockOptional[string] `json:"label,omitempty"`
// Sku: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Sku *BlockOptional[string] `json:"sku,omitempty"`
// Accent: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Accent *BlockOptional[string] `json:"accent,omitempty"`
// Products: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Products *BlockOptional[UnifiedCardProducts] `json:"products,omitempty"`
// BlockName: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
BlockName *BlockOptional[string] `json:"blockName,omitempty"`
}
UnifiedCard is a generated block. Use *UnifiedCard in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create. Create with UnifiedCardInput. To edit, retain the read list and modify its UnifiedCardUpdate pointers.
func (*UnifiedCard) BlockKey ¶ added in v0.15.0
func (value *UnifiedCard) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*UnifiedCard) BlockType ¶ added in v0.15.0
func (*UnifiedCard) BlockType() string
BlockType returns the immutable stored discriminator.
func (UnifiedCard) MarshalJSON ¶ added in v0.15.0
func (value UnifiedCard) MarshalJSON() ([]byte, error)
func (*UnifiedCard) UnmarshalJSON ¶ added in v0.15.0
func (value *UnifiedCard) UnmarshalJSON(data []byte) error
type UnifiedCardAllLocales ¶ added in v0.15.0
type UnifiedCardAllLocales struct {
// Key is the required identity of this existing occurrence.
Key string `json:"_key"`
// Label: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Label *BlockOptional[string] `json:"label,omitempty"`
// Sku: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Sku *BlockOptional[string] `json:"sku,omitempty"`
// Accent: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Accent *BlockOptional[string] `json:"accent,omitempty"`
// Products: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Products *BlockOptional[UnifiedCardProductsAllLocales] `json:"products,omitempty"`
// BlockName: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
BlockName *BlockOptional[string] `json:"blockName,omitempty"`
}
UnifiedCardAllLocales is a generated block. Use *UnifiedCardAllLocales in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create.
func (*UnifiedCardAllLocales) BlockKey ¶ added in v0.15.0
func (value *UnifiedCardAllLocales) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*UnifiedCardAllLocales) BlockType ¶ added in v0.15.0
func (*UnifiedCardAllLocales) BlockType() string
BlockType returns the immutable stored discriminator.
func (UnifiedCardAllLocales) MarshalJSON ¶ added in v0.15.0
func (value UnifiedCardAllLocales) MarshalJSON() ([]byte, error)
func (*UnifiedCardAllLocales) UnmarshalJSON ¶ added in v0.15.0
func (value *UnifiedCardAllLocales) UnmarshalJSON(data []byte) error
type UnifiedCardAllLocalesValue ¶ added in v0.15.0
type UnifiedCardAllLocalesValue struct {
// Key is the required identity of this existing occurrence.
Key string `json:"_key"`
// Label: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Label *BlockOptional[string] `json:"label,omitempty"`
// Sku: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Sku *BlockOptional[string] `json:"sku,omitempty"`
// Accent: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Accent *BlockOptional[string] `json:"accent,omitempty"`
// Products: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Products *BlockOptional[UnifiedCardProductsAllLocalesValue] `json:"products,omitempty"`
// BlockName: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
BlockName *BlockOptional[string] `json:"blockName,omitempty"`
}
UnifiedCardAllLocalesValue is a generated block. Use *UnifiedCardAllLocalesValue in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create.
func (*UnifiedCardAllLocalesValue) BlockKey ¶ added in v0.15.0
func (value *UnifiedCardAllLocalesValue) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*UnifiedCardAllLocalesValue) BlockType ¶ added in v0.15.0
func (*UnifiedCardAllLocalesValue) BlockType() string
BlockType returns the immutable stored discriminator.
func (UnifiedCardAllLocalesValue) MarshalJSON ¶ added in v0.15.0
func (value UnifiedCardAllLocalesValue) MarshalJSON() ([]byte, error)
func (*UnifiedCardAllLocalesValue) UnmarshalJSON ¶ added in v0.15.0
func (value *UnifiedCardAllLocalesValue) UnmarshalJSON(data []byte) error
type UnifiedCardInput ¶ added in v0.15.0
type UnifiedCardInput struct {
// Key identifies this occurrence; omit it for a new server-assigned identity.
Key string `json:"_key,omitempty"`
// Label: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Label *core.Input[string] `json:"label,omitempty"`
// Sku: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Sku *core.Input[string] `json:"sku,omitempty"`
// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Accent *core.Input[string] `json:"accent,omitempty"`
// Products: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Products *core.Input[[]UnifiedCardProductsRowInput] `json:"products,omitempty"`
// BlockName: nil omits the field; core.Set sends a value; core.Null sends explicit null.
BlockName *core.Input[string] `json:"blockName,omitempty"`
}
UnifiedCardInput is a generated block. Use *UnifiedCardInput 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 UnifiedCard; edit an existing occurrence with UnifiedCardUpdate.
func (*UnifiedCardInput) BlockKey ¶ added in v0.15.0
func (value *UnifiedCardInput) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*UnifiedCardInput) BlockType ¶ added in v0.15.0
func (*UnifiedCardInput) BlockType() string
BlockType returns the immutable stored discriminator.
func (UnifiedCardInput) MarshalJSON ¶ added in v0.15.0
func (value UnifiedCardInput) MarshalJSON() ([]byte, error)
func (*UnifiedCardInput) UnmarshalJSON ¶ added in v0.15.0
func (value *UnifiedCardInput) UnmarshalJSON(data []byte) error
type UnifiedCardProducts ¶ added in v0.15.0
type UnifiedCardProducts []UnifiedCardProductsRow
UnifiedCardProducts contains concrete array rows. Use Retain before editing existing rows.
func (UnifiedCardProducts) MarshalJSON ¶ added in v0.15.0
func (rows UnifiedCardProducts) MarshalJSON() ([]byte, error)
func (UnifiedCardProducts) Retain ¶ added in v0.15.0
func (rows UnifiedCardProducts) Retain() (UnifiedCardProductsUpdate, error)
Retain creates fresh key-only update pointers in the same order. It copies no authored fields. Edit the pointers, append new input pointers, or explicitly remove/reorder rows. Save with a revision check. Nil lists, empty keys and duplicate keys fail without returning a partial list. An explicitly empty list produces an empty update list.
func (*UnifiedCardProducts) UnmarshalJSON ¶ added in v0.15.0
func (rows *UnifiedCardProducts) UnmarshalJSON(data []byte) error
type UnifiedCardProductsAllLocales ¶ added in v0.15.0
type UnifiedCardProductsAllLocales []UnifiedCardProductsRowAllLocales
UnifiedCardProductsAllLocales contains concrete array rows. Use Retain before editing existing rows.
func (UnifiedCardProductsAllLocales) MarshalJSON ¶ added in v0.15.0
func (rows UnifiedCardProductsAllLocales) MarshalJSON() ([]byte, error)
func (UnifiedCardProductsAllLocales) Retain ¶ added in v0.15.0
func (rows UnifiedCardProductsAllLocales) Retain() (UnifiedCardProductsUpdate, error)
Retain creates fresh key-only update pointers in the same order. It copies no authored fields. Edit the pointers, append new input pointers, or explicitly remove/reorder rows. Save with a revision check. Nil lists, empty keys and duplicate keys fail without returning a partial list. An explicitly empty list produces an empty update list.
func (*UnifiedCardProductsAllLocales) UnmarshalJSON ¶ added in v0.15.0
func (rows *UnifiedCardProductsAllLocales) UnmarshalJSON(data []byte) error
type UnifiedCardProductsAllLocalesValue ¶ added in v0.15.0
type UnifiedCardProductsAllLocalesValue []UnifiedCardProductsRowAllLocalesValue
UnifiedCardProductsAllLocalesValue contains concrete array rows. Use Retain before editing existing rows.
func (UnifiedCardProductsAllLocalesValue) MarshalJSON ¶ added in v0.15.0
func (rows UnifiedCardProductsAllLocalesValue) MarshalJSON() ([]byte, error)
func (UnifiedCardProductsAllLocalesValue) Retain ¶ added in v0.15.0
func (rows UnifiedCardProductsAllLocalesValue) Retain() (UnifiedCardProductsUpdate, error)
Retain creates fresh key-only update pointers in the same order. It copies no authored fields. Edit the pointers, append new input pointers, or explicitly remove/reorder rows. Save with a revision check. Nil lists, empty keys and duplicate keys fail without returning a partial list. An explicitly empty list produces an empty update list.
func (*UnifiedCardProductsAllLocalesValue) UnmarshalJSON ¶ added in v0.15.0
func (rows *UnifiedCardProductsAllLocalesValue) UnmarshalJSON(data []byte) error
type UnifiedCardProductsRow ¶ added in v0.15.0
type UnifiedCardProductsRow struct {
Key string `json:"_key"`
// Label: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Label *BlockOptional[string] `json:"label,omitempty"`
// Sku: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Sku *BlockOptional[string] `json:"sku,omitempty"`
// Accent: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Accent *BlockOptional[string] `json:"accent,omitempty"`
}
func (UnifiedCardProductsRow) MarshalJSON ¶ added in v0.15.0
func (value UnifiedCardProductsRow) MarshalJSON() ([]byte, error)
func (*UnifiedCardProductsRow) RowKey ¶ added in v0.15.0
func (value *UnifiedCardProductsRow) RowKey() string
RowKey returns the occurrence identity, or an empty string for a nil or unkeyed row.
func (*UnifiedCardProductsRow) UnmarshalJSON ¶ added in v0.15.0
func (value *UnifiedCardProductsRow) UnmarshalJSON(data []byte) error
type UnifiedCardProductsRowAllLocales ¶ added in v0.15.0
type UnifiedCardProductsRowAllLocales struct {
Key string `json:"_key"`
// Label: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Label *BlockOptional[string] `json:"label,omitempty"`
// Sku: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Sku *BlockOptional[string] `json:"sku,omitempty"`
// Accent: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Accent *BlockOptional[string] `json:"accent,omitempty"`
}
func (UnifiedCardProductsRowAllLocales) MarshalJSON ¶ added in v0.15.0
func (value UnifiedCardProductsRowAllLocales) MarshalJSON() ([]byte, error)
func (*UnifiedCardProductsRowAllLocales) RowKey ¶ added in v0.15.0
func (value *UnifiedCardProductsRowAllLocales) RowKey() string
RowKey returns the occurrence identity, or an empty string for a nil or unkeyed row.
func (*UnifiedCardProductsRowAllLocales) UnmarshalJSON ¶ added in v0.15.0
func (value *UnifiedCardProductsRowAllLocales) UnmarshalJSON(data []byte) error
type UnifiedCardProductsRowAllLocalesValue ¶ added in v0.15.0
type UnifiedCardProductsRowAllLocalesValue struct {
Key string `json:"_key"`
// Label: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Label *BlockOptional[string] `json:"label,omitempty"`
// Sku: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Sku *BlockOptional[string] `json:"sku,omitempty"`
// Accent: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Accent *BlockOptional[string] `json:"accent,omitempty"`
}
func (UnifiedCardProductsRowAllLocalesValue) MarshalJSON ¶ added in v0.15.0
func (value UnifiedCardProductsRowAllLocalesValue) MarshalJSON() ([]byte, error)
func (*UnifiedCardProductsRowAllLocalesValue) RowKey ¶ added in v0.15.0
func (value *UnifiedCardProductsRowAllLocalesValue) RowKey() string
RowKey returns the occurrence identity, or an empty string for a nil or unkeyed row.
func (*UnifiedCardProductsRowAllLocalesValue) UnmarshalJSON ¶ added in v0.15.0
func (value *UnifiedCardProductsRowAllLocalesValue) UnmarshalJSON(data []byte) error
type UnifiedCardProductsRowInput ¶ added in v0.15.0
type UnifiedCardProductsRowInput struct {
Key string `json:"_key,omitempty"`
// Label: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Label *core.Input[string] `json:"label,omitempty"`
// Sku: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Sku *core.Input[string] `json:"sku,omitempty"`
// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Accent *core.Input[string] `json:"accent,omitempty"`
}
func (UnifiedCardProductsRowInput) MarshalJSON ¶ added in v0.15.0
func (value UnifiedCardProductsRowInput) MarshalJSON() ([]byte, error)
func (*UnifiedCardProductsRowInput) RowKey ¶ added in v0.15.0
func (value *UnifiedCardProductsRowInput) RowKey() string
RowKey returns the occurrence identity, or an empty string for a nil or unkeyed row.
func (*UnifiedCardProductsRowInput) UnmarshalJSON ¶ added in v0.15.0
func (value *UnifiedCardProductsRowInput) UnmarshalJSON(data []byte) error
type UnifiedCardProductsRowUpdate ¶ added in v0.15.0
type UnifiedCardProductsRowUpdate struct {
Key string `json:"_key,omitempty"`
// Label: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Label *core.Input[string] `json:"label,omitempty"`
// Sku: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Sku *core.Input[string] `json:"sku,omitempty"`
// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Accent *core.Input[string] `json:"accent,omitempty"`
}
func (UnifiedCardProductsRowUpdate) MarshalJSON ¶ added in v0.15.0
func (value UnifiedCardProductsRowUpdate) MarshalJSON() ([]byte, error)
func (*UnifiedCardProductsRowUpdate) RowKey ¶ added in v0.15.0
func (value *UnifiedCardProductsRowUpdate) RowKey() string
RowKey returns the occurrence identity, or an empty string for a nil or unkeyed row.
func (*UnifiedCardProductsRowUpdate) UnmarshalJSON ¶ added in v0.15.0
func (value *UnifiedCardProductsRowUpdate) UnmarshalJSON(data []byte) error
type UnifiedCardProductsUpdate ¶ added in v0.15.0
type UnifiedCardProductsUpdate []UnifiedCardProductsUpdateRow
func (UnifiedCardProductsUpdate) MarshalJSON ¶ added in v0.15.0
func (rows UnifiedCardProductsUpdate) MarshalJSON() ([]byte, error)
func (*UnifiedCardProductsUpdate) UnmarshalJSON ¶ added in v0.15.0
func (rows *UnifiedCardProductsUpdate) UnmarshalJSON(data []byte) error
type UnifiedCardProductsUpdateRow ¶ added in v0.15.0
type UnifiedCardProductsUpdateRow interface {
RowKey() string
// contains filtered or unexported methods
}
UnifiedCardProductsUpdateRow admits new input and retained update pointers. RowKey exposes identity without a type assertion.
type UnifiedCardUpdate ¶ added in v0.15.0
type UnifiedCardUpdate struct {
// Key is the required identity of this existing occurrence.
Key string `json:"_key"`
// Label: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Label *core.Input[string] `json:"label,omitempty"`
// Sku: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Sku *core.Input[string] `json:"sku,omitempty"`
// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Accent *core.Input[string] `json:"accent,omitempty"`
// Products: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Products *core.Input[UnifiedCardProductsUpdate] `json:"products,omitempty"`
// BlockName: nil omits the field; core.Set sends a value; core.Null sends explicit null.
BlockName *core.Input[string] `json:"blockName,omitempty"`
}
UnifiedCardUpdate is a generated block. Use *UnifiedCardUpdate 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 UnifiedCardInput for additions.
func (*UnifiedCardUpdate) BlockKey ¶ added in v0.15.0
func (value *UnifiedCardUpdate) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*UnifiedCardUpdate) BlockType ¶ added in v0.15.0
func (*UnifiedCardUpdate) BlockType() string
BlockType returns the immutable stored discriminator.
func (UnifiedCardUpdate) MarshalJSON ¶ added in v0.15.0
func (value UnifiedCardUpdate) MarshalJSON() ([]byte, error)
func (*UnifiedCardUpdate) UnmarshalJSON ¶ added in v0.15.0
func (value *UnifiedCardUpdate) UnmarshalJSON(data []byte) error
type UnifiedNote ¶ added in v0.15.0
type UnifiedNote struct {
// Key is the required identity of this existing occurrence.
Key string `json:"_key"`
// Label: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Label *BlockOptional[string] `json:"label,omitempty"`
// Accent: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Accent *BlockOptional[string] `json:"accent,omitempty"`
// BlockName: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
BlockName *BlockOptional[string] `json:"blockName,omitempty"`
}
UnifiedNote is a generated block. Use *UnifiedNote in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create. Create with UnifiedNoteInput. To edit, retain the read list and modify its UnifiedNoteUpdate pointers.
func (*UnifiedNote) BlockKey ¶ added in v0.15.0
func (value *UnifiedNote) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*UnifiedNote) BlockType ¶ added in v0.15.0
func (*UnifiedNote) BlockType() string
BlockType returns the immutable stored discriminator.
func (UnifiedNote) MarshalJSON ¶ added in v0.15.0
func (value UnifiedNote) MarshalJSON() ([]byte, error)
func (*UnifiedNote) UnmarshalJSON ¶ added in v0.15.0
func (value *UnifiedNote) UnmarshalJSON(data []byte) error
type UnifiedNoteAllLocales ¶ added in v0.15.0
type UnifiedNoteAllLocales struct {
// Key is the required identity of this existing occurrence.
Key string `json:"_key"`
// Label: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Label *BlockOptional[string] `json:"label,omitempty"`
// Accent: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Accent *BlockOptional[string] `json:"accent,omitempty"`
// BlockName: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
BlockName *BlockOptional[string] `json:"blockName,omitempty"`
}
UnifiedNoteAllLocales is a generated block. Use *UnifiedNoteAllLocales in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create.
func (*UnifiedNoteAllLocales) BlockKey ¶ added in v0.15.0
func (value *UnifiedNoteAllLocales) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*UnifiedNoteAllLocales) BlockType ¶ added in v0.15.0
func (*UnifiedNoteAllLocales) BlockType() string
BlockType returns the immutable stored discriminator.
func (UnifiedNoteAllLocales) MarshalJSON ¶ added in v0.15.0
func (value UnifiedNoteAllLocales) MarshalJSON() ([]byte, error)
func (*UnifiedNoteAllLocales) UnmarshalJSON ¶ added in v0.15.0
func (value *UnifiedNoteAllLocales) UnmarshalJSON(data []byte) error
type UnifiedNoteAllLocalesValue ¶ added in v0.15.0
type UnifiedNoteAllLocalesValue struct {
// Key is the required identity of this existing occurrence.
Key string `json:"_key"`
// Label: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Label *BlockOptional[string] `json:"label,omitempty"`
// Accent: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
Accent *BlockOptional[string] `json:"accent,omitempty"`
// BlockName: nil means omitted; a wrapper with nil Value means null. Get returns a concrete value when present.
BlockName *BlockOptional[string] `json:"blockName,omitempty"`
}
UnifiedNoteAllLocalesValue is a generated block. Use *UnifiedNoteAllLocalesValue in block lists and type switches. Authored children may be omitted by access rules or projection, even when required on create.
func (*UnifiedNoteAllLocalesValue) BlockKey ¶ added in v0.15.0
func (value *UnifiedNoteAllLocalesValue) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*UnifiedNoteAllLocalesValue) BlockType ¶ added in v0.15.0
func (*UnifiedNoteAllLocalesValue) BlockType() string
BlockType returns the immutable stored discriminator.
func (UnifiedNoteAllLocalesValue) MarshalJSON ¶ added in v0.15.0
func (value UnifiedNoteAllLocalesValue) MarshalJSON() ([]byte, error)
func (*UnifiedNoteAllLocalesValue) UnmarshalJSON ¶ added in v0.15.0
func (value *UnifiedNoteAllLocalesValue) UnmarshalJSON(data []byte) error
type UnifiedNoteInput ¶ added in v0.15.0
type UnifiedNoteInput struct {
// Key identifies this occurrence; omit it for a new server-assigned identity.
Key string `json:"_key,omitempty"`
// Label: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Label *core.Input[string] `json:"label,omitempty"`
// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Accent *core.Input[string] `json:"accent,omitempty"`
// BlockName: nil omits the field; core.Set sends a value; core.Null sends explicit null.
BlockName *core.Input[string] `json:"blockName,omitempty"`
}
UnifiedNoteInput is a generated block. Use *UnifiedNoteInput 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 UnifiedNote; edit an existing occurrence with UnifiedNoteUpdate.
func (*UnifiedNoteInput) BlockKey ¶ added in v0.15.0
func (value *UnifiedNoteInput) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*UnifiedNoteInput) BlockType ¶ added in v0.15.0
func (*UnifiedNoteInput) BlockType() string
BlockType returns the immutable stored discriminator.
func (UnifiedNoteInput) MarshalJSON ¶ added in v0.15.0
func (value UnifiedNoteInput) MarshalJSON() ([]byte, error)
func (*UnifiedNoteInput) UnmarshalJSON ¶ added in v0.15.0
func (value *UnifiedNoteInput) UnmarshalJSON(data []byte) error
type UnifiedNoteUpdate ¶ added in v0.15.0
type UnifiedNoteUpdate struct {
// Key is the required identity of this existing occurrence.
Key string `json:"_key"`
// Label: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Label *core.Input[string] `json:"label,omitempty"`
// Accent: nil omits the field; core.Set sends a value; core.Null sends explicit null.
Accent *core.Input[string] `json:"accent,omitempty"`
// BlockName: nil omits the field; core.Set sends a value; core.Null sends explicit null.
BlockName *core.Input[string] `json:"blockName,omitempty"`
}
UnifiedNoteUpdate is a generated block. Use *UnifiedNoteUpdate 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 UnifiedNoteInput for additions.
func (*UnifiedNoteUpdate) BlockKey ¶ added in v0.15.0
func (value *UnifiedNoteUpdate) BlockKey() string
BlockKey returns the occurrence identity, or an empty string for a nil or new block.
func (*UnifiedNoteUpdate) BlockType ¶ added in v0.15.0
func (*UnifiedNoteUpdate) BlockType() string
BlockType returns the immutable stored discriminator.
func (UnifiedNoteUpdate) MarshalJSON ¶ added in v0.15.0
func (value UnifiedNoteUpdate) MarshalJSON() ([]byte, error)
func (*UnifiedNoteUpdate) UnmarshalJSON ¶ added in v0.15.0
func (value *UnifiedNoteUpdate) UnmarshalJSON(data []byte) error
type User ¶
type User struct {
ID string `json:"id"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
// Name may be omitted by access rules or projection.
Name *string `json:"name,omitempty"`
}
User is a single-locale read. Authored fields can be omitted by access rules or projection.
func (*User) UnmarshalJSON ¶
type UserAllLocales ¶
type UserAllLocales struct {
ID string `json:"id"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
// Name may be omitted by access rules or projection.
Name *string `json:"name,omitempty"`
}
UserAllLocales is an all-locales read: localized fields contain locale-code maps.
func (*UserAllLocales) UnmarshalJSON ¶
func (value *UserAllLocales) UnmarshalJSON(data []byte) error
type UserCreate ¶
type UserCreate struct {
// Name is required when creating this value.
Name string `json:"name"`
}
UserCreate supplies a new document. Required values are concrete; defaulted values may be omitted, and nullable values use core.Set or core.Null.
func (*UserCreate) UnmarshalJSON ¶
func (value *UserCreate) UnmarshalJSON(data []byte) error
type UserUpdate ¶
type UserUpdate struct {
// Name: nil omits the field; a pointer sends a value. Null is not allowed.
Name *string `json:"name,omitempty"`
}
UserUpdate edits a document. Nil fields are unchanged; supplied block lists replace order and membership.
func (*UserUpdate) UnmarshalJSON ¶
func (value *UserUpdate) UnmarshalJSON(data []byte) error