formatJalaliDate
SourceformatJalaliDate(value: JalaliDateValue, options?: JalaliDateDisplayOptions) => string | nullExported from: @nexload-sdk/payload-fields
Public function exported by @nexload-sdk/payload-fields.
formatJalaliDateformatJalaliDate(value: JalaliDateValue, options?: JalaliDateDisplayOptions) => string | nullExported from: @nexload-sdk/payload-fields
Public function exported by @nexload-sdk/payload-fields.
formatMoneyformatMoney(value: number | null | undefined, currency: MoneyCurrency, display?: MoneyDisplayOptions) => string | nullExported from: @nexload-sdk/payload-fields
Public function exported by @nexload-sdk/payload-fields.
formatSlugformatSlug(value: string) => stringExported from: @nexload-sdk/payload-fields
Public function exported by @nexload-sdk/payload-fields.
jalaliDateFieldjalaliDateField(options: JalaliDateFieldOptions) => DateFieldExported from: @nexload-sdk/payload-fields
Public function exported by @nexload-sdk/payload-fields.
moneyFieldmoneyField(options: MoneyFieldOptions) => NumberFieldExported from: @nexload-sdk/payload-fields
Public function exported by @nexload-sdk/payload-fields.
parseMoneyToMinorUnitsparseMoneyToMinorUnits(input: string, currency: MoneyCurrency) => numberExported from: @nexload-sdk/payload-fields
Public function exported by @nexload-sdk/payload-fields.
payloadFieldsPluginpayloadFieldsPlugin(options?: PayloadFieldsPluginOptions) => PluginExported from: @nexload-sdk/payload-fields
Public function exported by @nexload-sdk/payload-fields.
resolveCurrencyresolveCurrency(currency: MoneyCurrency) => MoneyCurrencyDefinitionExported from: @nexload-sdk/payload-fields
Public function exported by @nexload-sdk/payload-fields.
slugFieldslugField(options?: SlugFieldOptions) => SlugFieldResultExported from: @nexload-sdk/payload-fields
Public function exported by @nexload-sdk/payload-fields.
withJalaliTimestampswithJalaliTimestamps<T extends Field[]>(fields: T, options?: JalaliTimestampsOptions) => Field[]Exported from: @nexload-sdk/payload-fields
Public function exported by @nexload-sdk/payload-fields.
IRRIRR: Readonly<MoneyCurrencyDefinition>Exported from: @nexload-sdk/payload-fields
Public constant exported by @nexload-sdk/payload-fields.
IRTIRT: Readonly<MoneyCurrencyDefinition>Exported from: @nexload-sdk/payload-fields
Public constant exported by @nexload-sdk/payload-fields.
formatSlugHookformatSlugHook(options: SlugHookOptions) => FieldHookExported from: @nexload-sdk/payload-fields
Public constant exported by @nexload-sdk/payload-fields.
JalaliDateDisplayOptionstype JalaliDateDisplayOptions = {
dateStyle?: "short" | "medium" | "long" | "full"
timeStyle?: "short" | "medium"
digits?: "persian" | "latin"
timeZone?: string
};Exported from: @nexload-sdk/payload-fields
Public type exported by @nexload-sdk/payload-fields.
JalaliDateFieldOptionstype JalaliDateFieldOptions = {
name: string
pickerAppearance?: JalaliPickerAppearance
display?: import("./format-date").JalaliDateDisplayOptions
overrides?: Partial<DateField>
};Exported from: @nexload-sdk/payload-fields
Public type exported by @nexload-sdk/payload-fields.
JalaliDateValuetype JalaliDateValue = Date | string | number | null | undefined;Exported from: @nexload-sdk/payload-fields
Public type exported by @nexload-sdk/payload-fields.
JalaliPickerAppearancetype JalaliPickerAppearance
= | "dayOnly"
| "dayAndTime"
| "timeOnly"
| "monthOnly";Exported from: @nexload-sdk/payload-fields
Public type exported by @nexload-sdk/payload-fields.
JalaliTimestampsOptionstype JalaliTimestampsOptions = {
createdAt?: boolean
updatedAt?: boolean
display?: import("./format-date").JalaliDateDisplayOptions
overrides?: { createdAt?: Partial<TextField>, updatedAt?: Partial<TextField> }
};Exported from: @nexload-sdk/payload-fields
Public type exported by @nexload-sdk/payload-fields.
MoneyCurrencytype MoneyCurrency = "IRR" | "IRT" | MoneyCurrencyDefinition;Exported from: @nexload-sdk/payload-fields
Public type exported by @nexload-sdk/payload-fields.
MoneyCurrencyDefinitiontype MoneyCurrencyDefinition = {
code: string
label: string
fractionDigits: number
};Exported from: @nexload-sdk/payload-fields
Public type exported by @nexload-sdk/payload-fields.
MoneyDisplayOptionstype MoneyDisplayOptions = {
locale?: string
digits?: "persian" | "latin"
grouping?: boolean
showCurrency?: boolean
};Exported from: @nexload-sdk/payload-fields
Public type exported by @nexload-sdk/payload-fields.
MoneyFieldOptionstype MoneyFieldOptions = {
name: string
currency: MoneyCurrency
minMinorUnits?: number
maxMinorUnits?: number
allowNegative?: boolean
display?: MoneyDisplayOptions
overrides?: Partial<NumberField>
};Exported from: @nexload-sdk/payload-fields
Public type exported by @nexload-sdk/payload-fields.
PayloadFieldsPluginOptionstype PayloadFieldsPluginOptions = { slugGenerators?: Record<string, SlugGenerator>, generateSlugAccess?: SlugGenerationAccess };Exported from: @nexload-sdk/payload-fields
Public type exported by @nexload-sdk/payload-fields.
SlugFieldOptionstype SlugFieldOptions = {
name?: string
lockName?: string
source?: string
generator?: string
regenerateOnSourceChange?: boolean
overrides?: { slug?: Partial<TextField>, lock?: Partial<CheckboxField> }
};Exported from: @nexload-sdk/payload-fields
Public type exported by @nexload-sdk/payload-fields.
SlugFieldResulttype SlugFieldResult = readonly [TextField, CheckboxField];Exported from: @nexload-sdk/payload-fields
Public type exported by @nexload-sdk/payload-fields.
SlugGenerationAccesstype SlugGenerationAccess = (context: SlugGeneratorContext) => boolean | Promise<boolean>;Exported from: @nexload-sdk/payload-fields
Public type exported by @nexload-sdk/payload-fields.
SlugGeneratortype SlugGenerator = (input: SlugGeneratorInput, context: SlugGeneratorContext) => Promise<string>;Exported from: @nexload-sdk/payload-fields
Public type exported by @nexload-sdk/payload-fields.
SlugGeneratorContexttype SlugGeneratorContext = { req: PayloadRequest };Exported from: @nexload-sdk/payload-fields
Public type exported by @nexload-sdk/payload-fields.
SlugGeneratorInputtype SlugGeneratorInput = { sourceValue: string, currentSlug?: string };Exported from: @nexload-sdk/payload-fields
Public type exported by @nexload-sdk/payload-fields.
SlugHookOptionstype SlugHookOptions = {
name: string
lockName: string
source: string
regenerateOnSourceChange: boolean
};Exported from: @nexload-sdk/payload-fields
Public type exported by @nexload-sdk/payload-fields.
slugField(options?) returns [TextField, CheckboxField]; spread it into fields.jalaliDateField(options) returns one native Payload date field.withJalaliTimestamps(fields, options?) returns a new field array with virtual Jalali timestamp fields.moneyField(options) returns one native number field with safe-integer validation.payloadFieldsPlugin(options?) returns a Payload plugin and adds the slug-generator endpoint.formatSlug and formatSlugHook share slug normalization.formatJalaliDate formats date-like input or returns null.parseMoneyToMinorUnits, formatMoney, and resolveCurrency own money conversion and presentation.IRR and IRT are frozen zero-fraction currency definitions.Public option and value types are exported from the root and semantic subpaths. Import Admin components only through the package’s declared ./admin/* subpaths, normally via Payload’s Import Map.
Factory configuration errors throw synchronously. Field validation returns Payload validation strings. Pure money parsers throw TypeError for malformed input and RangeError for precision or safe-integer violations. The plugin endpoint returns structured HTTP failures with codes from PAYLOAD_FIELDS_UNAUTHENTICATED through PAYLOAD_FIELDS_GENERATION_FAILED.
See the source entrypoint for the current export surface.