Tento use all declared Shopify definitions, you can find all of them here
single_line_text_field
string
A single-line text field. String value types can store up to five million characters.
export const metaobjectDefinition = metaobject({ name: "Metaobject Definition", type: "metaobject_definition", fieldDefinitions: (f) => ({ field: f.singleLineTextField(), }),});/** A human-readable name for the field. This can be changed at any time. */field: f.singleLineTextField({ name: "text_field",})/** Whether metaobjects require a saved value for the field. */field: f.singleLineTextField({ required: true, // false as default})/** An administrative description of the field. */field: f.singleLineTextField({ description: "description",})
Validations
Custom validations that apply to values assigned to the field.
export const metaobjectDefinition = metaobject({ name: "Metaobject Definition", type: "metaobject_definition", fieldDefinitions: (f) => ({ field: f.singleLineTextList(), }),});/** A human-readable name for the field. This can be changed at any time. */field: f.singleLineTextList({ name: "text_field",})/** Whether metaobjects require a saved value for the field. */field: f.singleLineTextList({ required: true, // false as default})/** An administrative description of the field. */field: f.singleLineTextList({ description: "description",})
multi_line_text_field
string
A multi-line text field. String value types can store up to five million characters.
export const metaobjectDefinition = metaobject({ name: "Metaobject Definition", type: "metaobject_definition", fieldDefinitions: (f) => ({ field: f.multiLineTextField(), }),});/** A human-readable name for the field. This can be changed at any time. */field: f.multiLineTextField({ name: "text_field",})/** Whether metaobjects require a saved value for the field. */field: f.multiLineTextField({ required: true, // false as default})/** An administrative description of the field. */field: f.multiLineTextField({ description: "description",})
Validations
Custom validations that apply to values assigned to the field.
string
A number with decimal places in the range of +/-9999999999999.999999999. String value types can store up to five million characters.
export const metaobjectDefinition = metaobject({ name: "Metaobject Definition", type: "metaobject_definition", fieldDefinitions: (f) => ({ field: f.decimal(), }),});/** A human-readable name for the field. This can be changed at any time. */field: f.decimal({ name: "decimal_field",})/** Whether metaobjects require a saved value for the field. */field: f.decimal({ required: true, // false as default})/** An administrative description of the field. */field: f.decimal({ description: "description",})
Validations
Custom validations that apply to values assigned to the field.
string[]
A list of numbers with decimal places in the range of +/-9999999999999.999999999.
export const metaobjectDefinition = metaobject({ name: "Metaobject Definition", type: "metaobject_definition", fieldDefinitions: (f) => ({ field: f.decimalList(), }),});/** A human-readable name for the field. This can be changed at any time. */field: f.decimalList({ name: "decimal_field",})/** Whether metaobjects require a saved value for the field. */field: f.decimalList({ required: true, // false as default})/** An administrative description of the field. */field: f.decimalList({ description: "description",})
---
url
string
A URL with one of the allowed schemes: https, http, mailto, sms, tel. String value types can store up to five million characters.
export const metaobjectDefinition = metaobject({ name: "Metaobject Definition", type: "metaobject_definition", fieldDefinitions: (f) => ({ field: f.url(), }),});/** A human-readable name for the field. This can be changed at any time. */field: f.url({ name: "url_field",})/** Whether metaobjects require a saved value for the field. */field: f.url({ required: true, // false as default})/** An administrative description of the field. */field: f.url({ description: "description",})
Validations
Custom validations that apply to values assigned to the field.
string[]
A list of URLs with one of the allowed schemes: https, http, mailto, sms, tel.
export const metaobjectDefinition = metaobject({ name: "Metaobject Definition", type: "metaobject_definition", fieldDefinitions: (f) => ({ field: f.urlList(), }),});/** A human-readable name for the field. This can be changed at any time. */field: f.urlList({ name: "url_field",})/** Whether metaobjects require a saved value for the field. */field: f.urlList({ required: true, // false as default})/** An administrative description of the field. */field: f.urlList({ description: "description",})
---
number_integer
integer
A whole number in the range of +/-9,007,199,254,740,991.
export const metaobjectDefinition = metaobject({ name: "Metaobject Definition", type: "metaobject_definition", fieldDefinitions: (f) => ({ field: f.integer(), }),});/** A human-readable name for the field. This can be changed at any time. */field: f.integer({ name: "integer_field",})/** Whether metaobjects require a saved value for the field. */field: f.integer({ required: true, // false as default})/** An administrative description of the field. */field: f.integer({ description: "description",})
Validations
Custom validations that apply to values assigned to the field.
string[]
A list of whole numbers in the range of +/-9,007,199,254,740,991.
export const metaobjectDefinition = metaobject({ name: "Metaobject Definition", type: "metaobject_definition", fieldDefinitions: (f) => ({ field: f.integerList(), }),});/** A human-readable name for the field. This can be changed at any time. */field: f.integerList({ name: "integer_field",})/** Whether metaobjects require a saved value for the field. */field: f.integerList({ required: true, // false as default})/** An administrative description of the field. */field: f.integerList({ description: "description",})
---
date
string
A date in ISO 8601 format without a presumed timezone. String value types can store up to five million characters.
export const metaobjectDefinition = metaobject({ name: "Metaobject Definition", type: "metaobject_definition", fieldDefinitions: (f) => ({ field: f.date(), }),});/** A human-readable name for the field. This can be changed at any time. */field: f.date({ name: "date_field",})/** Whether metaobjects require a saved value for the field. */field: f.date({ required: true, // false as default})/** An administrative description of the field. */field: f.date({ description: "description",})
Validations
Custom validations that apply to values assigned to the field.
string[]
A list of dates in ISO 8601 format without a presumed timezone.
export const metaobjectDefinition = metaobject({ name: "Metaobject Definition", type: "metaobject_definition", fieldDefinitions: (f) => ({ field: f.dateList(), }),});/** A human-readable name for the field. This can be changed at any time. */field: f.dateList({ name: "date_field",})/** Whether metaobjects require a saved value for the field. */field: f.dateList({ required: true, // false as default})/** An administrative description of the field. */field: f.dateList({ description: "description",})
---
date_time
string
A date and time in ISO 8601 format without a presumed timezone. Defaults to Greenwich Mean Time (GMT). String value types can store up to five million characters.
export const metaobjectDefinition = metaobject({ name: "Metaobject Definition", type: "metaobject_definition", fieldDefinitions: (f) => ({ field: f.dateTime(), }),});/** A human-readable name for the field. This can be changed at any time. */field: f.dateTime({ name: "date_field",})/** Whether metaobjects require a saved value for the field. */field: f.dateTime({ required: true, // false as default})/** An administrative description of the field. */field: f.dateTime({ description: "description",})
Validations
Custom validations that apply to values assigned to the field.
string[]
A list of dates and times in ISO 8601 format without a presumed timezone. Defaults to Greenwich Mean Time (GMT).
export const metaobjectDefinition = metaobject({ name: "Metaobject Definition", type: "metaobject_definition", fieldDefinitions: (f) => ({ field: f.dateTimeList(), }),});/** A human-readable name for the field. This can be changed at any time. */field: f.dateTimeList({ name: "date_field",})/** Whether metaobjects require a saved value for the field. */field: f.dateTimeList({ required: true, // false as default})/** An administrative description of the field. */field: f.dateTimeList({ description: "description",})
---
dimension
json
A value and a unit of length. Valid unit values: in, ft, yd, mm, cm, m
export const metaobjectDefinition = metaobject({ name: "Metaobject Definition", type: "metaobject_definition", fieldDefinitions: (f) => ({ field: f.dimension(), }),});/** A human-readable name for the field. This can be changed at any time. */field: f.dimension({ name: "dimension_field",})/** Whether metaobjects require a saved value for the field. */field: f.dimension({ required: true, // false as default})/** An administrative description of the field. */field: f.dimension({ description: "description",})
Validations
Custom validations that apply to values assigned to the field.
json[]
A list of values and a unit of length. Valid unit values: in, ft, yd, mm, cm, m
export const metaobjectDefinition = metaobject({ name: "Metaobject Definition", type: "metaobject_definition", fieldDefinitions: (f) => ({ field: f.dimensionList(), }),});/** A human-readable name for the field. This can be changed at any time. */field: f.dimensionList({ name: "dimension_field",})/** Whether metaobjects require a saved value for the field. */field: f.dimensionList({ required: true, // false as default})/** An administrative description of the field. */field: f.dimensionList({ description: "description",})
---
volume
json
A value and a unit of volume. Valid unit values: ml, cl, l, m3 (cubic meters), us_fl_oz, us_pt, us_qt, us_gal, imp_fl_oz, imp_pt, imp_qt, imp_gal.
export const metaobjectDefinition = metaobject({ name: "Metaobject Definition", type: "metaobject_definition", fieldDefinitions: (f) => ({ field: f.volume(), }),});/** A human-readable name for the field. This can be changed at any time. */field: f.volume({ name: "volume_field",})/** Whether metaobjects require a saved value for the field. */field: f.volume({ required: true, // false as default})/** An administrative description of the field. */field: f.volume({ description: "description",})
Validations
Custom validations that apply to values assigned to the field.
json[]
A list of values and a unit of volume. Valid unit values: ml, cl, l, m3 (cubic meters), us_fl_oz, us_pt, us_qt, us_gal, imp_fl_oz, imp_pt, imp_qt, imp_gal.
export const metaobjectDefinition = metaobject({ name: "Metaobject Definition", type: "metaobject_definition", fieldDefinitions: (f) => ({ field: f.volumeList(), }),});/** A human-readable name for the field. This can be changed at any time. */field: f.volumeList({ name: "volume_field",})/** Whether metaobjects require a saved value for the field. */field: f.volumeList({ required: true, // false as default})/** An administrative description of the field. */field: f.volumeList({ description: "description",})
---
weight
json
A value and a unit of weight. Valid unit values: oz, lb, g, kg
export const metaobjectDefinition = metaobject({ name: "Metaobject Definition", type: "metaobject_definition", fieldDefinitions: (f) => ({ field: f.weight(), }),});/** A human-readable name for the field. This can be changed at any time. */field: f.weight({ name: "weight_field",})/** Whether metaobjects require a saved value for the field. */field: f.weight({ required: true, // false as default})/** An administrative description of the field. */field: f.weight({ description: "description",})
Validations
Custom validations that apply to values assigned to the field.
json[]
A list of values and a unit of weight. Valid unit values: oz, lb, g, kg
export const metaobjectDefinition = metaobject({ name: "Metaobject Definition", type: "metaobject_definition", fieldDefinitions: (f) => ({ field: f.weightList(), }),});/** A human-readable name for the field. This can be changed at any time. */field: f.weightList({ name: "weight_field",})/** Whether metaobjects require a saved value for the field. */field: f.weightList({ required: true, // false as default})/** An administrative description of the field. */field: f.weightList({ description: "description",})