functional-models 2.1.1 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/validation.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { FunctionalModel, ModelInstance, ModelValidatorComponent, PropertyValidatorComponent, PropertyValidator, PropertyConfig, PropertyValidators, ValueGetter, Arrayable, FunctionalValue, ModelErrors, ValidatorConfiguration, ValuePropertyValidatorComponent } from './interfaces';
1
+ import { FunctionalModel, ModelInstance, ModelValidatorComponent, PropertyValidatorComponent, PropertyValidator, PropertyConfig, PropertyValidators, ValueGetter, Arrayable, FunctionalValue, ModelErrors, ValidatorConfiguration, ValuePropertyValidatorComponent, MaybeFunction, PropertyValidatorComponentTypeAdvanced } from './interfaces';
2
2
  declare const TYPE_PRIMITIVES: {
3
3
  boolean: string;
4
4
  string: string;
@@ -10127,4 +10127,2046 @@ declare const createModelValidator: <T extends FunctionalModel, TModel extends R
10127
10127
  getModel: () => TModel;
10128
10128
  }>, propertyConfiguration: ValidatorConfiguration) => Promise<ModelErrors<T>>;
10129
10129
  declare const isValid: <T extends FunctionalModel>(errors: ModelErrors<T>) => boolean;
10130
- export { isNumber, isBoolean, isString, isInteger, isType, isDate, isArray, isRequired, maxNumber, minNumber, choices, maxTextLength, minTextLength, meetsRegex, aggregateValidator, emptyValidator, createPropertyValidator, createModelValidator, arrayType, isValid, TYPE_PRIMITIVES, };
10130
+ declare const referenceTypeMatch: <T extends FunctionalModel, TModel extends Readonly<{
10131
+ getName: () => string;
10132
+ getSingularName: () => string;
10133
+ getDisplayName: () => string;
10134
+ getPrimaryKeyName: () => string;
10135
+ getModelDefinition: () => Readonly<{
10136
+ getPrimaryKeyName?: (() => string) | undefined;
10137
+ properties: {
10138
+ id?: (Readonly<{
10139
+ getConfig: () => object;
10140
+ getChoices: () => readonly (string | number | boolean | null)[];
10141
+ getDefaultValue: () => string;
10142
+ getConstantValue: () => string;
10143
+ getPropertyType: () => string;
10144
+ createGetter: (value: string, modelData: FunctionalModel, modelInstance: Readonly<{
10145
+ get: import("./interfaces").PropertyGetters<FunctionalModel> & {
10146
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
10147
+ };
10148
+ references: Readonly<{
10149
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
10150
+ }>;
10151
+ toObj: import("./interfaces").toObj<FunctionalModel>;
10152
+ getPrimaryKeyName: () => string;
10153
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
10154
+ validators: PropertyValidators<FunctionalModel, Readonly<{
10155
+ getName: () => string;
10156
+ getSingularName: () => string;
10157
+ getDisplayName: () => string;
10158
+ getPrimaryKeyName: () => string;
10159
+ getModelDefinition: () => Readonly<{
10160
+ getPrimaryKeyName?: (() => string) | undefined;
10161
+ properties: any & {
10162
+ readonly [x: string]: Readonly<{
10163
+ getConfig: () => object;
10164
+ getChoices: () => readonly (string | number | boolean | null)[];
10165
+ getDefaultValue: () => any;
10166
+ getConstantValue: () => any;
10167
+ getPropertyType: () => string;
10168
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10169
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10170
+ }>;
10171
+ readonly id?: Readonly<{
10172
+ getConfig: () => object;
10173
+ getChoices: () => readonly (string | number | boolean | null)[];
10174
+ getDefaultValue: () => any;
10175
+ getConstantValue: () => any;
10176
+ getPropertyType: () => string;
10177
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10178
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10179
+ }> | undefined;
10180
+ };
10181
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
10182
+ singularName?: string | undefined;
10183
+ displayName?: string | undefined;
10184
+ }>;
10185
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
10186
+ getOptions: () => object & Readonly<{
10187
+ [s: string]: any;
10188
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
10189
+ }>;
10190
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
10191
+ }>>;
10192
+ validate: (options?: object | undefined) => Promise<ModelErrors<FunctionalModel>>;
10193
+ getModel: () => Readonly<{
10194
+ getName: () => string;
10195
+ getSingularName: () => string;
10196
+ getDisplayName: () => string;
10197
+ getPrimaryKeyName: () => string;
10198
+ getModelDefinition: () => Readonly<{
10199
+ getPrimaryKeyName?: (() => string) | undefined;
10200
+ properties: any & {
10201
+ readonly [x: string]: Readonly<{
10202
+ getConfig: () => object;
10203
+ getChoices: () => readonly (string | number | boolean | null)[];
10204
+ getDefaultValue: () => any;
10205
+ getConstantValue: () => any;
10206
+ getPropertyType: () => string;
10207
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10208
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10209
+ }>;
10210
+ readonly id?: Readonly<{
10211
+ getConfig: () => object;
10212
+ getChoices: () => readonly (string | number | boolean | null)[];
10213
+ getDefaultValue: () => any;
10214
+ getConstantValue: () => any;
10215
+ getPropertyType: () => string;
10216
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10217
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10218
+ }> | undefined;
10219
+ };
10220
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
10221
+ singularName?: string | undefined;
10222
+ displayName?: string | undefined;
10223
+ }>;
10224
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
10225
+ getOptions: () => object & Readonly<{
10226
+ [s: string]: any;
10227
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
10228
+ }>;
10229
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
10230
+ }>;
10231
+ }>) => ValueGetter<string, FunctionalModel, Readonly<{
10232
+ getName: () => string;
10233
+ getSingularName: () => string;
10234
+ getDisplayName: () => string;
10235
+ getPrimaryKeyName: () => string;
10236
+ getModelDefinition: () => Readonly<{
10237
+ getPrimaryKeyName?: (() => string) | undefined;
10238
+ properties: any & {
10239
+ readonly [x: string]: Readonly<{
10240
+ getConfig: () => object;
10241
+ getChoices: () => readonly (string | number | boolean | null)[];
10242
+ getDefaultValue: () => any;
10243
+ getConstantValue: () => any;
10244
+ getPropertyType: () => string;
10245
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10246
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10247
+ }>;
10248
+ readonly id?: Readonly<{
10249
+ getConfig: () => object;
10250
+ getChoices: () => readonly (string | number | boolean | null)[];
10251
+ getDefaultValue: () => any;
10252
+ getConstantValue: () => any;
10253
+ getPropertyType: () => string;
10254
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10255
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10256
+ }> | undefined;
10257
+ };
10258
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
10259
+ singularName?: string | undefined;
10260
+ displayName?: string | undefined;
10261
+ }>;
10262
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
10263
+ getOptions: () => object & Readonly<{
10264
+ [s: string]: any;
10265
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
10266
+ }>;
10267
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
10268
+ }>, Readonly<{
10269
+ get: import("./interfaces").PropertyGetters<FunctionalModel> & {
10270
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
10271
+ };
10272
+ references: Readonly<{
10273
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
10274
+ }>;
10275
+ toObj: import("./interfaces").toObj<FunctionalModel>;
10276
+ getPrimaryKeyName: () => string;
10277
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
10278
+ validators: PropertyValidators<FunctionalModel, Readonly<{
10279
+ getName: () => string;
10280
+ getSingularName: () => string;
10281
+ getDisplayName: () => string;
10282
+ getPrimaryKeyName: () => string;
10283
+ getModelDefinition: () => Readonly<{
10284
+ getPrimaryKeyName?: (() => string) | undefined;
10285
+ properties: any & {
10286
+ readonly [x: string]: Readonly<{
10287
+ getConfig: () => object;
10288
+ getChoices: () => readonly (string | number | boolean | null)[];
10289
+ getDefaultValue: () => any;
10290
+ getConstantValue: () => any;
10291
+ getPropertyType: () => string;
10292
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10293
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10294
+ }>;
10295
+ readonly id?: Readonly<{
10296
+ getConfig: () => object;
10297
+ getChoices: () => readonly (string | number | boolean | null)[];
10298
+ getDefaultValue: () => any;
10299
+ getConstantValue: () => any;
10300
+ getPropertyType: () => string;
10301
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10302
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10303
+ }> | undefined;
10304
+ };
10305
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
10306
+ singularName?: string | undefined;
10307
+ displayName?: string | undefined;
10308
+ }>;
10309
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
10310
+ getOptions: () => object & Readonly<{
10311
+ [s: string]: any;
10312
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
10313
+ }>;
10314
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
10315
+ }>>;
10316
+ validate: (options?: object | undefined) => Promise<ModelErrors<FunctionalModel>>;
10317
+ getModel: () => Readonly<{
10318
+ getName: () => string;
10319
+ getSingularName: () => string;
10320
+ getDisplayName: () => string;
10321
+ getPrimaryKeyName: () => string;
10322
+ getModelDefinition: () => Readonly<{
10323
+ getPrimaryKeyName?: (() => string) | undefined;
10324
+ properties: any & {
10325
+ readonly [x: string]: Readonly<{
10326
+ getConfig: () => object;
10327
+ getChoices: () => readonly (string | number | boolean | null)[];
10328
+ getDefaultValue: () => any;
10329
+ getConstantValue: () => any;
10330
+ getPropertyType: () => string;
10331
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10332
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10333
+ }>;
10334
+ readonly id?: Readonly<{
10335
+ getConfig: () => object;
10336
+ getChoices: () => readonly (string | number | boolean | null)[];
10337
+ getDefaultValue: () => any;
10338
+ getConstantValue: () => any;
10339
+ getPropertyType: () => string;
10340
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10341
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10342
+ }> | undefined;
10343
+ };
10344
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
10345
+ singularName?: string | undefined;
10346
+ displayName?: string | undefined;
10347
+ }>;
10348
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
10349
+ getOptions: () => object & Readonly<{
10350
+ [s: string]: any;
10351
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
10352
+ }>;
10353
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
10354
+ }>;
10355
+ }>>;
10356
+ getValidator: (valueGetter: ValueGetter<string, FunctionalModel, Readonly<{
10357
+ getName: () => string;
10358
+ getSingularName: () => string;
10359
+ getDisplayName: () => string;
10360
+ getPrimaryKeyName: () => string;
10361
+ getModelDefinition: () => Readonly<{
10362
+ getPrimaryKeyName?: (() => string) | undefined;
10363
+ properties: any & {
10364
+ readonly [x: string]: Readonly<{
10365
+ getConfig: () => object;
10366
+ getChoices: () => readonly (string | number | boolean | null)[];
10367
+ getDefaultValue: () => any;
10368
+ getConstantValue: () => any;
10369
+ getPropertyType: () => string;
10370
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10371
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10372
+ }>;
10373
+ readonly id?: Readonly<{
10374
+ getConfig: () => object;
10375
+ getChoices: () => readonly (string | number | boolean | null)[];
10376
+ getDefaultValue: () => any;
10377
+ getConstantValue: () => any;
10378
+ getPropertyType: () => string;
10379
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10380
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10381
+ }> | undefined;
10382
+ };
10383
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
10384
+ singularName?: string | undefined;
10385
+ displayName?: string | undefined;
10386
+ }>;
10387
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
10388
+ getOptions: () => object & Readonly<{
10389
+ [s: string]: any;
10390
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
10391
+ }>;
10392
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
10393
+ }>, Readonly<{
10394
+ get: import("./interfaces").PropertyGetters<FunctionalModel> & {
10395
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
10396
+ };
10397
+ references: Readonly<{
10398
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
10399
+ }>;
10400
+ toObj: import("./interfaces").toObj<FunctionalModel>;
10401
+ getPrimaryKeyName: () => string;
10402
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
10403
+ validators: PropertyValidators<FunctionalModel, Readonly<{
10404
+ getName: () => string;
10405
+ getSingularName: () => string;
10406
+ getDisplayName: () => string;
10407
+ getPrimaryKeyName: () => string;
10408
+ getModelDefinition: () => Readonly<{
10409
+ getPrimaryKeyName?: (() => string) | undefined;
10410
+ properties: any & {
10411
+ readonly [x: string]: Readonly<{
10412
+ getConfig: () => object;
10413
+ getChoices: () => readonly (string | number | boolean | null)[];
10414
+ getDefaultValue: () => any;
10415
+ getConstantValue: () => any;
10416
+ getPropertyType: () => string;
10417
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10418
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10419
+ }>;
10420
+ readonly id?: Readonly<{
10421
+ getConfig: () => object;
10422
+ getChoices: () => readonly (string | number | boolean | null)[];
10423
+ getDefaultValue: () => any;
10424
+ getConstantValue: () => any;
10425
+ getPropertyType: () => string;
10426
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10427
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10428
+ }> | undefined;
10429
+ };
10430
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
10431
+ singularName?: string | undefined;
10432
+ displayName?: string | undefined;
10433
+ }>;
10434
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
10435
+ getOptions: () => object & Readonly<{
10436
+ [s: string]: any;
10437
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
10438
+ }>;
10439
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
10440
+ }>>;
10441
+ validate: (options?: object | undefined) => Promise<ModelErrors<FunctionalModel>>;
10442
+ getModel: () => Readonly<{
10443
+ getName: () => string;
10444
+ getSingularName: () => string;
10445
+ getDisplayName: () => string;
10446
+ getPrimaryKeyName: () => string;
10447
+ getModelDefinition: () => Readonly<{
10448
+ getPrimaryKeyName?: (() => string) | undefined;
10449
+ properties: any & {
10450
+ readonly [x: string]: Readonly<{
10451
+ getConfig: () => object;
10452
+ getChoices: () => readonly (string | number | boolean | null)[];
10453
+ getDefaultValue: () => any;
10454
+ getConstantValue: () => any;
10455
+ getPropertyType: () => string;
10456
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10457
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10458
+ }>;
10459
+ readonly id?: Readonly<{
10460
+ getConfig: () => object;
10461
+ getChoices: () => readonly (string | number | boolean | null)[];
10462
+ getDefaultValue: () => any;
10463
+ getConstantValue: () => any;
10464
+ getPropertyType: () => string;
10465
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10466
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10467
+ }> | undefined;
10468
+ };
10469
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
10470
+ singularName?: string | undefined;
10471
+ displayName?: string | undefined;
10472
+ }>;
10473
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
10474
+ getOptions: () => object & Readonly<{
10475
+ [s: string]: any;
10476
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
10477
+ }>;
10478
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
10479
+ }>;
10480
+ }>>) => PropertyValidator<FunctionalModel, Readonly<{
10481
+ getName: () => string;
10482
+ getSingularName: () => string;
10483
+ getDisplayName: () => string;
10484
+ getPrimaryKeyName: () => string;
10485
+ getModelDefinition: () => Readonly<{
10486
+ getPrimaryKeyName?: (() => string) | undefined;
10487
+ properties: any & {
10488
+ readonly [x: string]: Readonly<{
10489
+ getConfig: () => object;
10490
+ getChoices: () => readonly (string | number | boolean | null)[];
10491
+ getDefaultValue: () => any;
10492
+ getConstantValue: () => any;
10493
+ getPropertyType: () => string;
10494
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10495
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10496
+ }>;
10497
+ readonly id?: Readonly<{
10498
+ getConfig: () => object;
10499
+ getChoices: () => readonly (string | number | boolean | null)[];
10500
+ getDefaultValue: () => any;
10501
+ getConstantValue: () => any;
10502
+ getPropertyType: () => string;
10503
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10504
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10505
+ }> | undefined;
10506
+ };
10507
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
10508
+ singularName?: string | undefined;
10509
+ displayName?: string | undefined;
10510
+ }>;
10511
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
10512
+ getOptions: () => object & Readonly<{
10513
+ [s: string]: any;
10514
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
10515
+ }>;
10516
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
10517
+ }>, Readonly<{
10518
+ get: import("./interfaces").PropertyGetters<FunctionalModel> & {
10519
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
10520
+ };
10521
+ references: Readonly<{
10522
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
10523
+ }>;
10524
+ toObj: import("./interfaces").toObj<FunctionalModel>;
10525
+ getPrimaryKeyName: () => string;
10526
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
10527
+ validators: PropertyValidators<FunctionalModel, Readonly<{
10528
+ getName: () => string;
10529
+ getSingularName: () => string;
10530
+ getDisplayName: () => string;
10531
+ getPrimaryKeyName: () => string;
10532
+ getModelDefinition: () => Readonly<{
10533
+ getPrimaryKeyName?: (() => string) | undefined;
10534
+ properties: any & {
10535
+ readonly [x: string]: Readonly<{
10536
+ getConfig: () => object;
10537
+ getChoices: () => readonly (string | number | boolean | null)[];
10538
+ getDefaultValue: () => any;
10539
+ getConstantValue: () => any;
10540
+ getPropertyType: () => string;
10541
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10542
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10543
+ }>;
10544
+ readonly id?: Readonly<{
10545
+ getConfig: () => object;
10546
+ getChoices: () => readonly (string | number | boolean | null)[];
10547
+ getDefaultValue: () => any;
10548
+ getConstantValue: () => any;
10549
+ getPropertyType: () => string;
10550
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10551
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10552
+ }> | undefined;
10553
+ };
10554
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
10555
+ singularName?: string | undefined;
10556
+ displayName?: string | undefined;
10557
+ }>;
10558
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
10559
+ getOptions: () => object & Readonly<{
10560
+ [s: string]: any;
10561
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
10562
+ }>;
10563
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
10564
+ }>>;
10565
+ validate: (options?: object | undefined) => Promise<ModelErrors<FunctionalModel>>;
10566
+ getModel: () => Readonly<{
10567
+ getName: () => string;
10568
+ getSingularName: () => string;
10569
+ getDisplayName: () => string;
10570
+ getPrimaryKeyName: () => string;
10571
+ getModelDefinition: () => Readonly<{
10572
+ getPrimaryKeyName?: (() => string) | undefined;
10573
+ properties: any & {
10574
+ readonly [x: string]: Readonly<{
10575
+ getConfig: () => object;
10576
+ getChoices: () => readonly (string | number | boolean | null)[];
10577
+ getDefaultValue: () => any;
10578
+ getConstantValue: () => any;
10579
+ getPropertyType: () => string;
10580
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10581
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10582
+ }>;
10583
+ readonly id?: Readonly<{
10584
+ getConfig: () => object;
10585
+ getChoices: () => readonly (string | number | boolean | null)[];
10586
+ getDefaultValue: () => any;
10587
+ getConstantValue: () => any;
10588
+ getPropertyType: () => string;
10589
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10590
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10591
+ }> | undefined;
10592
+ };
10593
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
10594
+ singularName?: string | undefined;
10595
+ displayName?: string | undefined;
10596
+ }>;
10597
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
10598
+ getOptions: () => object & Readonly<{
10599
+ [s: string]: any;
10600
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
10601
+ }>;
10602
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
10603
+ }>;
10604
+ }>>;
10605
+ }> | Readonly<{
10606
+ getConfig: () => object;
10607
+ getChoices: () => readonly (string | number | boolean | null)[];
10608
+ getDefaultValue: () => number;
10609
+ getConstantValue: () => number;
10610
+ getPropertyType: () => string;
10611
+ createGetter: (value: number, modelData: FunctionalModel, modelInstance: Readonly<{
10612
+ get: import("./interfaces").PropertyGetters<FunctionalModel> & {
10613
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
10614
+ };
10615
+ references: Readonly<{
10616
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
10617
+ }>;
10618
+ toObj: import("./interfaces").toObj<FunctionalModel>;
10619
+ getPrimaryKeyName: () => string;
10620
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
10621
+ validators: PropertyValidators<FunctionalModel, Readonly<{
10622
+ getName: () => string;
10623
+ getSingularName: () => string;
10624
+ getDisplayName: () => string;
10625
+ getPrimaryKeyName: () => string;
10626
+ getModelDefinition: () => Readonly<{
10627
+ getPrimaryKeyName?: (() => string) | undefined;
10628
+ properties: any & {
10629
+ readonly [x: string]: Readonly<{
10630
+ getConfig: () => object;
10631
+ getChoices: () => readonly (string | number | boolean | null)[];
10632
+ getDefaultValue: () => any;
10633
+ getConstantValue: () => any;
10634
+ getPropertyType: () => string;
10635
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10636
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10637
+ }>;
10638
+ readonly id?: Readonly<{
10639
+ getConfig: () => object;
10640
+ getChoices: () => readonly (string | number | boolean | null)[];
10641
+ getDefaultValue: () => any;
10642
+ getConstantValue: () => any;
10643
+ getPropertyType: () => string;
10644
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10645
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10646
+ }> | undefined;
10647
+ };
10648
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
10649
+ singularName?: string | undefined;
10650
+ displayName?: string | undefined;
10651
+ }>;
10652
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
10653
+ getOptions: () => object & Readonly<{
10654
+ [s: string]: any;
10655
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
10656
+ }>;
10657
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
10658
+ }>>;
10659
+ validate: (options?: object | undefined) => Promise<ModelErrors<FunctionalModel>>;
10660
+ getModel: () => Readonly<{
10661
+ getName: () => string;
10662
+ getSingularName: () => string;
10663
+ getDisplayName: () => string;
10664
+ getPrimaryKeyName: () => string;
10665
+ getModelDefinition: () => Readonly<{
10666
+ getPrimaryKeyName?: (() => string) | undefined;
10667
+ properties: any & {
10668
+ readonly [x: string]: Readonly<{
10669
+ getConfig: () => object;
10670
+ getChoices: () => readonly (string | number | boolean | null)[];
10671
+ getDefaultValue: () => any;
10672
+ getConstantValue: () => any;
10673
+ getPropertyType: () => string;
10674
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10675
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10676
+ }>;
10677
+ readonly id?: Readonly<{
10678
+ getConfig: () => object;
10679
+ getChoices: () => readonly (string | number | boolean | null)[];
10680
+ getDefaultValue: () => any;
10681
+ getConstantValue: () => any;
10682
+ getPropertyType: () => string;
10683
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10684
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10685
+ }> | undefined;
10686
+ };
10687
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
10688
+ singularName?: string | undefined;
10689
+ displayName?: string | undefined;
10690
+ }>;
10691
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
10692
+ getOptions: () => object & Readonly<{
10693
+ [s: string]: any;
10694
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
10695
+ }>;
10696
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
10697
+ }>;
10698
+ }>) => ValueGetter<number, FunctionalModel, Readonly<{
10699
+ getName: () => string;
10700
+ getSingularName: () => string;
10701
+ getDisplayName: () => string;
10702
+ getPrimaryKeyName: () => string;
10703
+ getModelDefinition: () => Readonly<{
10704
+ getPrimaryKeyName?: (() => string) | undefined;
10705
+ properties: any & {
10706
+ readonly [x: string]: Readonly<{
10707
+ getConfig: () => object;
10708
+ getChoices: () => readonly (string | number | boolean | null)[];
10709
+ getDefaultValue: () => any;
10710
+ getConstantValue: () => any;
10711
+ getPropertyType: () => string;
10712
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10713
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10714
+ }>;
10715
+ readonly id?: Readonly<{
10716
+ getConfig: () => object;
10717
+ getChoices: () => readonly (string | number | boolean | null)[];
10718
+ getDefaultValue: () => any;
10719
+ getConstantValue: () => any;
10720
+ getPropertyType: () => string;
10721
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10722
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10723
+ }> | undefined;
10724
+ };
10725
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
10726
+ singularName?: string | undefined;
10727
+ displayName?: string | undefined;
10728
+ }>;
10729
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
10730
+ getOptions: () => object & Readonly<{
10731
+ [s: string]: any;
10732
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
10733
+ }>;
10734
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
10735
+ }>, Readonly<{
10736
+ get: import("./interfaces").PropertyGetters<FunctionalModel> & {
10737
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
10738
+ };
10739
+ references: Readonly<{
10740
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
10741
+ }>;
10742
+ toObj: import("./interfaces").toObj<FunctionalModel>;
10743
+ getPrimaryKeyName: () => string;
10744
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
10745
+ validators: PropertyValidators<FunctionalModel, Readonly<{
10746
+ getName: () => string;
10747
+ getSingularName: () => string;
10748
+ getDisplayName: () => string;
10749
+ getPrimaryKeyName: () => string;
10750
+ getModelDefinition: () => Readonly<{
10751
+ getPrimaryKeyName?: (() => string) | undefined;
10752
+ properties: any & {
10753
+ readonly [x: string]: Readonly<{
10754
+ getConfig: () => object;
10755
+ getChoices: () => readonly (string | number | boolean | null)[];
10756
+ getDefaultValue: () => any;
10757
+ getConstantValue: () => any;
10758
+ getPropertyType: () => string;
10759
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10760
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10761
+ }>;
10762
+ readonly id?: Readonly<{
10763
+ getConfig: () => object;
10764
+ getChoices: () => readonly (string | number | boolean | null)[];
10765
+ getDefaultValue: () => any;
10766
+ getConstantValue: () => any;
10767
+ getPropertyType: () => string;
10768
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10769
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10770
+ }> | undefined;
10771
+ };
10772
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
10773
+ singularName?: string | undefined;
10774
+ displayName?: string | undefined;
10775
+ }>;
10776
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
10777
+ getOptions: () => object & Readonly<{
10778
+ [s: string]: any;
10779
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
10780
+ }>;
10781
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
10782
+ }>>;
10783
+ validate: (options?: object | undefined) => Promise<ModelErrors<FunctionalModel>>;
10784
+ getModel: () => Readonly<{
10785
+ getName: () => string;
10786
+ getSingularName: () => string;
10787
+ getDisplayName: () => string;
10788
+ getPrimaryKeyName: () => string;
10789
+ getModelDefinition: () => Readonly<{
10790
+ getPrimaryKeyName?: (() => string) | undefined;
10791
+ properties: any & {
10792
+ readonly [x: string]: Readonly<{
10793
+ getConfig: () => object;
10794
+ getChoices: () => readonly (string | number | boolean | null)[];
10795
+ getDefaultValue: () => any;
10796
+ getConstantValue: () => any;
10797
+ getPropertyType: () => string;
10798
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10799
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10800
+ }>;
10801
+ readonly id?: Readonly<{
10802
+ getConfig: () => object;
10803
+ getChoices: () => readonly (string | number | boolean | null)[];
10804
+ getDefaultValue: () => any;
10805
+ getConstantValue: () => any;
10806
+ getPropertyType: () => string;
10807
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10808
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10809
+ }> | undefined;
10810
+ };
10811
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
10812
+ singularName?: string | undefined;
10813
+ displayName?: string | undefined;
10814
+ }>;
10815
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
10816
+ getOptions: () => object & Readonly<{
10817
+ [s: string]: any;
10818
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
10819
+ }>;
10820
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
10821
+ }>;
10822
+ }>>;
10823
+ getValidator: (valueGetter: ValueGetter<number, FunctionalModel, Readonly<{
10824
+ getName: () => string;
10825
+ getSingularName: () => string;
10826
+ getDisplayName: () => string;
10827
+ getPrimaryKeyName: () => string;
10828
+ getModelDefinition: () => Readonly<{
10829
+ getPrimaryKeyName?: (() => string) | undefined;
10830
+ properties: any & {
10831
+ readonly [x: string]: Readonly<{
10832
+ getConfig: () => object;
10833
+ getChoices: () => readonly (string | number | boolean | null)[];
10834
+ getDefaultValue: () => any;
10835
+ getConstantValue: () => any;
10836
+ getPropertyType: () => string;
10837
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10838
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10839
+ }>;
10840
+ readonly id?: Readonly<{
10841
+ getConfig: () => object;
10842
+ getChoices: () => readonly (string | number | boolean | null)[];
10843
+ getDefaultValue: () => any;
10844
+ getConstantValue: () => any;
10845
+ getPropertyType: () => string;
10846
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10847
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10848
+ }> | undefined;
10849
+ };
10850
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
10851
+ singularName?: string | undefined;
10852
+ displayName?: string | undefined;
10853
+ }>;
10854
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
10855
+ getOptions: () => object & Readonly<{
10856
+ [s: string]: any;
10857
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
10858
+ }>;
10859
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
10860
+ }>, Readonly<{
10861
+ get: import("./interfaces").PropertyGetters<FunctionalModel> & {
10862
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
10863
+ };
10864
+ references: Readonly<{
10865
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
10866
+ }>;
10867
+ toObj: import("./interfaces").toObj<FunctionalModel>;
10868
+ getPrimaryKeyName: () => string;
10869
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
10870
+ validators: PropertyValidators<FunctionalModel, Readonly<{
10871
+ getName: () => string;
10872
+ getSingularName: () => string;
10873
+ getDisplayName: () => string;
10874
+ getPrimaryKeyName: () => string;
10875
+ getModelDefinition: () => Readonly<{
10876
+ getPrimaryKeyName?: (() => string) | undefined;
10877
+ properties: any & {
10878
+ readonly [x: string]: Readonly<{
10879
+ getConfig: () => object;
10880
+ getChoices: () => readonly (string | number | boolean | null)[];
10881
+ getDefaultValue: () => any;
10882
+ getConstantValue: () => any;
10883
+ getPropertyType: () => string;
10884
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10885
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10886
+ }>;
10887
+ readonly id?: Readonly<{
10888
+ getConfig: () => object;
10889
+ getChoices: () => readonly (string | number | boolean | null)[];
10890
+ getDefaultValue: () => any;
10891
+ getConstantValue: () => any;
10892
+ getPropertyType: () => string;
10893
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10894
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10895
+ }> | undefined;
10896
+ };
10897
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
10898
+ singularName?: string | undefined;
10899
+ displayName?: string | undefined;
10900
+ }>;
10901
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
10902
+ getOptions: () => object & Readonly<{
10903
+ [s: string]: any;
10904
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
10905
+ }>;
10906
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
10907
+ }>>;
10908
+ validate: (options?: object | undefined) => Promise<ModelErrors<FunctionalModel>>;
10909
+ getModel: () => Readonly<{
10910
+ getName: () => string;
10911
+ getSingularName: () => string;
10912
+ getDisplayName: () => string;
10913
+ getPrimaryKeyName: () => string;
10914
+ getModelDefinition: () => Readonly<{
10915
+ getPrimaryKeyName?: (() => string) | undefined;
10916
+ properties: any & {
10917
+ readonly [x: string]: Readonly<{
10918
+ getConfig: () => object;
10919
+ getChoices: () => readonly (string | number | boolean | null)[];
10920
+ getDefaultValue: () => any;
10921
+ getConstantValue: () => any;
10922
+ getPropertyType: () => string;
10923
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10924
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10925
+ }>;
10926
+ readonly id?: Readonly<{
10927
+ getConfig: () => object;
10928
+ getChoices: () => readonly (string | number | boolean | null)[];
10929
+ getDefaultValue: () => any;
10930
+ getConstantValue: () => any;
10931
+ getPropertyType: () => string;
10932
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10933
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10934
+ }> | undefined;
10935
+ };
10936
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
10937
+ singularName?: string | undefined;
10938
+ displayName?: string | undefined;
10939
+ }>;
10940
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
10941
+ getOptions: () => object & Readonly<{
10942
+ [s: string]: any;
10943
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
10944
+ }>;
10945
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
10946
+ }>;
10947
+ }>>) => PropertyValidator<FunctionalModel, Readonly<{
10948
+ getName: () => string;
10949
+ getSingularName: () => string;
10950
+ getDisplayName: () => string;
10951
+ getPrimaryKeyName: () => string;
10952
+ getModelDefinition: () => Readonly<{
10953
+ getPrimaryKeyName?: (() => string) | undefined;
10954
+ properties: any & {
10955
+ readonly [x: string]: Readonly<{
10956
+ getConfig: () => object;
10957
+ getChoices: () => readonly (string | number | boolean | null)[];
10958
+ getDefaultValue: () => any;
10959
+ getConstantValue: () => any;
10960
+ getPropertyType: () => string;
10961
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10962
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10963
+ }>;
10964
+ readonly id?: Readonly<{
10965
+ getConfig: () => object;
10966
+ getChoices: () => readonly (string | number | boolean | null)[];
10967
+ getDefaultValue: () => any;
10968
+ getConstantValue: () => any;
10969
+ getPropertyType: () => string;
10970
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
10971
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
10972
+ }> | undefined;
10973
+ };
10974
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
10975
+ singularName?: string | undefined;
10976
+ displayName?: string | undefined;
10977
+ }>;
10978
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
10979
+ getOptions: () => object & Readonly<{
10980
+ [s: string]: any;
10981
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
10982
+ }>;
10983
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
10984
+ }>, Readonly<{
10985
+ get: import("./interfaces").PropertyGetters<FunctionalModel> & {
10986
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
10987
+ };
10988
+ references: Readonly<{
10989
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
10990
+ }>;
10991
+ toObj: import("./interfaces").toObj<FunctionalModel>;
10992
+ getPrimaryKeyName: () => string;
10993
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
10994
+ validators: PropertyValidators<FunctionalModel, Readonly<{
10995
+ getName: () => string;
10996
+ getSingularName: () => string;
10997
+ getDisplayName: () => string;
10998
+ getPrimaryKeyName: () => string;
10999
+ getModelDefinition: () => Readonly<{
11000
+ getPrimaryKeyName?: (() => string) | undefined;
11001
+ properties: any & {
11002
+ readonly [x: string]: Readonly<{
11003
+ getConfig: () => object;
11004
+ getChoices: () => readonly (string | number | boolean | null)[];
11005
+ getDefaultValue: () => any;
11006
+ getConstantValue: () => any;
11007
+ getPropertyType: () => string;
11008
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11009
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11010
+ }>;
11011
+ readonly id?: Readonly<{
11012
+ getConfig: () => object;
11013
+ getChoices: () => readonly (string | number | boolean | null)[];
11014
+ getDefaultValue: () => any;
11015
+ getConstantValue: () => any;
11016
+ getPropertyType: () => string;
11017
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11018
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11019
+ }> | undefined;
11020
+ };
11021
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
11022
+ singularName?: string | undefined;
11023
+ displayName?: string | undefined;
11024
+ }>;
11025
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
11026
+ getOptions: () => object & Readonly<{
11027
+ [s: string]: any;
11028
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
11029
+ }>;
11030
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
11031
+ }>>;
11032
+ validate: (options?: object | undefined) => Promise<ModelErrors<FunctionalModel>>;
11033
+ getModel: () => Readonly<{
11034
+ getName: () => string;
11035
+ getSingularName: () => string;
11036
+ getDisplayName: () => string;
11037
+ getPrimaryKeyName: () => string;
11038
+ getModelDefinition: () => Readonly<{
11039
+ getPrimaryKeyName?: (() => string) | undefined;
11040
+ properties: any & {
11041
+ readonly [x: string]: Readonly<{
11042
+ getConfig: () => object;
11043
+ getChoices: () => readonly (string | number | boolean | null)[];
11044
+ getDefaultValue: () => any;
11045
+ getConstantValue: () => any;
11046
+ getPropertyType: () => string;
11047
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11048
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11049
+ }>;
11050
+ readonly id?: Readonly<{
11051
+ getConfig: () => object;
11052
+ getChoices: () => readonly (string | number | boolean | null)[];
11053
+ getDefaultValue: () => any;
11054
+ getConstantValue: () => any;
11055
+ getPropertyType: () => string;
11056
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11057
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11058
+ }> | undefined;
11059
+ };
11060
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
11061
+ singularName?: string | undefined;
11062
+ displayName?: string | undefined;
11063
+ }>;
11064
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
11065
+ getOptions: () => object & Readonly<{
11066
+ [s: string]: any;
11067
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
11068
+ }>;
11069
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
11070
+ }>;
11071
+ }>>;
11072
+ }>) | undefined;
11073
+ } & { readonly [P in keyof T as T[P] extends Arrayable<FunctionalValue> ? P : never]: Readonly<{
11074
+ getConfig: () => object;
11075
+ getChoices: () => readonly (string | number | boolean | null)[];
11076
+ getDefaultValue: () => any;
11077
+ getConstantValue: () => any;
11078
+ getPropertyType: () => string;
11079
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11080
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11081
+ }>; };
11082
+ modelValidators?: readonly ModelValidatorComponent<T, Readonly<any>, Readonly<{
11083
+ get: import("./interfaces").PropertyGetters<T> & {
11084
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
11085
+ };
11086
+ references: Readonly<{
11087
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
11088
+ }>;
11089
+ toObj: import("./interfaces").toObj<T>;
11090
+ getPrimaryKeyName: () => string;
11091
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
11092
+ validators: PropertyValidators<T, Readonly<any>>;
11093
+ validate: (options?: object | undefined) => Promise<ModelErrors<T>>;
11094
+ getModel: () => Readonly<any>;
11095
+ }>>[] | undefined;
11096
+ singularName?: string | undefined;
11097
+ displayName?: string | undefined;
11098
+ }>;
11099
+ getPrimaryKey: (t: T | import("./interfaces").TypedJsonObj<T>) => import("./interfaces").PrimaryKeyType;
11100
+ getOptions: () => object & Readonly<{
11101
+ [s: string]: any;
11102
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<{
11103
+ get: import("./interfaces").PropertyGetters<T> & {
11104
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
11105
+ };
11106
+ references: Readonly<{
11107
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
11108
+ }>;
11109
+ toObj: import("./interfaces").toObj<T>;
11110
+ getPrimaryKeyName: () => string;
11111
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
11112
+ validators: PropertyValidators<T, Readonly<any>>;
11113
+ validate: (options?: object | undefined) => Promise<ModelErrors<T>>;
11114
+ getModel: () => Readonly<any>;
11115
+ }>) => void>>;
11116
+ }>;
11117
+ create: (data: import("./interfaces").CreateParams<T>) => Readonly<{
11118
+ get: import("./interfaces").PropertyGetters<T> & {
11119
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
11120
+ };
11121
+ references: Readonly<{
11122
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
11123
+ }>;
11124
+ toObj: import("./interfaces").toObj<T>;
11125
+ getPrimaryKeyName: () => string;
11126
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
11127
+ validators: PropertyValidators<T, Readonly<any>>;
11128
+ validate: (options?: object | undefined) => Promise<ModelErrors<T>>;
11129
+ getModel: () => Readonly<any>;
11130
+ }>;
11131
+ }> = Readonly<{
11132
+ getName: () => string;
11133
+ getSingularName: () => string;
11134
+ getDisplayName: () => string;
11135
+ getPrimaryKeyName: () => string;
11136
+ getModelDefinition: () => Readonly<{
11137
+ getPrimaryKeyName?: (() => string) | undefined;
11138
+ properties: {
11139
+ id?: (Readonly<{
11140
+ getConfig: () => object;
11141
+ getChoices: () => readonly (string | number | boolean | null)[];
11142
+ getDefaultValue: () => string;
11143
+ getConstantValue: () => string;
11144
+ getPropertyType: () => string;
11145
+ createGetter: (value: string, modelData: FunctionalModel, modelInstance: Readonly<{
11146
+ get: import("./interfaces").PropertyGetters<FunctionalModel> & {
11147
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
11148
+ };
11149
+ references: Readonly<{
11150
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
11151
+ }>;
11152
+ toObj: import("./interfaces").toObj<FunctionalModel>;
11153
+ getPrimaryKeyName: () => string;
11154
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
11155
+ validators: PropertyValidators<FunctionalModel, Readonly<{
11156
+ getName: () => string;
11157
+ getSingularName: () => string;
11158
+ getDisplayName: () => string;
11159
+ getPrimaryKeyName: () => string;
11160
+ getModelDefinition: () => Readonly<{
11161
+ getPrimaryKeyName?: (() => string) | undefined;
11162
+ properties: any & {
11163
+ readonly [x: string]: Readonly<{
11164
+ getConfig: () => object;
11165
+ getChoices: () => readonly (string | number | boolean | null)[];
11166
+ getDefaultValue: () => any;
11167
+ getConstantValue: () => any;
11168
+ getPropertyType: () => string;
11169
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11170
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11171
+ }>;
11172
+ readonly id?: Readonly<{
11173
+ getConfig: () => object;
11174
+ getChoices: () => readonly (string | number | boolean | null)[];
11175
+ getDefaultValue: () => any;
11176
+ getConstantValue: () => any;
11177
+ getPropertyType: () => string;
11178
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11179
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11180
+ }> | undefined;
11181
+ };
11182
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
11183
+ singularName?: string | undefined;
11184
+ displayName?: string | undefined;
11185
+ }>;
11186
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
11187
+ getOptions: () => object & Readonly<{
11188
+ [s: string]: any;
11189
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
11190
+ }>;
11191
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
11192
+ }>>;
11193
+ validate: (options?: object | undefined) => Promise<ModelErrors<FunctionalModel>>;
11194
+ getModel: () => Readonly<{
11195
+ getName: () => string;
11196
+ getSingularName: () => string;
11197
+ getDisplayName: () => string;
11198
+ getPrimaryKeyName: () => string;
11199
+ getModelDefinition: () => Readonly<{
11200
+ getPrimaryKeyName?: (() => string) | undefined;
11201
+ properties: any & {
11202
+ readonly [x: string]: Readonly<{
11203
+ getConfig: () => object;
11204
+ getChoices: () => readonly (string | number | boolean | null)[];
11205
+ getDefaultValue: () => any;
11206
+ getConstantValue: () => any;
11207
+ getPropertyType: () => string;
11208
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11209
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11210
+ }>;
11211
+ readonly id?: Readonly<{
11212
+ getConfig: () => object;
11213
+ getChoices: () => readonly (string | number | boolean | null)[];
11214
+ getDefaultValue: () => any;
11215
+ getConstantValue: () => any;
11216
+ getPropertyType: () => string;
11217
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11218
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11219
+ }> | undefined;
11220
+ };
11221
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
11222
+ singularName?: string | undefined;
11223
+ displayName?: string | undefined;
11224
+ }>;
11225
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
11226
+ getOptions: () => object & Readonly<{
11227
+ [s: string]: any;
11228
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
11229
+ }>;
11230
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
11231
+ }>;
11232
+ }>) => ValueGetter<string, FunctionalModel, Readonly<{
11233
+ getName: () => string;
11234
+ getSingularName: () => string;
11235
+ getDisplayName: () => string;
11236
+ getPrimaryKeyName: () => string;
11237
+ getModelDefinition: () => Readonly<{
11238
+ getPrimaryKeyName?: (() => string) | undefined;
11239
+ properties: any & {
11240
+ readonly [x: string]: Readonly<{
11241
+ getConfig: () => object;
11242
+ getChoices: () => readonly (string | number | boolean | null)[];
11243
+ getDefaultValue: () => any;
11244
+ getConstantValue: () => any;
11245
+ getPropertyType: () => string;
11246
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11247
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11248
+ }>;
11249
+ readonly id?: Readonly<{
11250
+ getConfig: () => object;
11251
+ getChoices: () => readonly (string | number | boolean | null)[];
11252
+ getDefaultValue: () => any;
11253
+ getConstantValue: () => any;
11254
+ getPropertyType: () => string;
11255
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11256
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11257
+ }> | undefined;
11258
+ };
11259
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
11260
+ singularName?: string | undefined;
11261
+ displayName?: string | undefined;
11262
+ }>;
11263
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
11264
+ getOptions: () => object & Readonly<{
11265
+ [s: string]: any;
11266
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
11267
+ }>;
11268
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
11269
+ }>, Readonly<{
11270
+ get: import("./interfaces").PropertyGetters<FunctionalModel> & {
11271
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
11272
+ };
11273
+ references: Readonly<{
11274
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
11275
+ }>;
11276
+ toObj: import("./interfaces").toObj<FunctionalModel>;
11277
+ getPrimaryKeyName: () => string;
11278
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
11279
+ validators: PropertyValidators<FunctionalModel, Readonly<{
11280
+ getName: () => string;
11281
+ getSingularName: () => string;
11282
+ getDisplayName: () => string;
11283
+ getPrimaryKeyName: () => string;
11284
+ getModelDefinition: () => Readonly<{
11285
+ getPrimaryKeyName?: (() => string) | undefined;
11286
+ properties: any & {
11287
+ readonly [x: string]: Readonly<{
11288
+ getConfig: () => object;
11289
+ getChoices: () => readonly (string | number | boolean | null)[];
11290
+ getDefaultValue: () => any;
11291
+ getConstantValue: () => any;
11292
+ getPropertyType: () => string;
11293
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11294
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11295
+ }>;
11296
+ readonly id?: Readonly<{
11297
+ getConfig: () => object;
11298
+ getChoices: () => readonly (string | number | boolean | null)[];
11299
+ getDefaultValue: () => any;
11300
+ getConstantValue: () => any;
11301
+ getPropertyType: () => string;
11302
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11303
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11304
+ }> | undefined;
11305
+ };
11306
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
11307
+ singularName?: string | undefined;
11308
+ displayName?: string | undefined;
11309
+ }>;
11310
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
11311
+ getOptions: () => object & Readonly<{
11312
+ [s: string]: any;
11313
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
11314
+ }>;
11315
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
11316
+ }>>;
11317
+ validate: (options?: object | undefined) => Promise<ModelErrors<FunctionalModel>>;
11318
+ getModel: () => Readonly<{
11319
+ getName: () => string;
11320
+ getSingularName: () => string;
11321
+ getDisplayName: () => string;
11322
+ getPrimaryKeyName: () => string;
11323
+ getModelDefinition: () => Readonly<{
11324
+ getPrimaryKeyName?: (() => string) | undefined;
11325
+ properties: any & {
11326
+ readonly [x: string]: Readonly<{
11327
+ getConfig: () => object;
11328
+ getChoices: () => readonly (string | number | boolean | null)[];
11329
+ getDefaultValue: () => any;
11330
+ getConstantValue: () => any;
11331
+ getPropertyType: () => string;
11332
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11333
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11334
+ }>;
11335
+ readonly id?: Readonly<{
11336
+ getConfig: () => object;
11337
+ getChoices: () => readonly (string | number | boolean | null)[];
11338
+ getDefaultValue: () => any;
11339
+ getConstantValue: () => any;
11340
+ getPropertyType: () => string;
11341
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11342
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11343
+ }> | undefined;
11344
+ };
11345
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
11346
+ singularName?: string | undefined;
11347
+ displayName?: string | undefined;
11348
+ }>;
11349
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
11350
+ getOptions: () => object & Readonly<{
11351
+ [s: string]: any;
11352
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
11353
+ }>;
11354
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
11355
+ }>;
11356
+ }>>;
11357
+ getValidator: (valueGetter: ValueGetter<string, FunctionalModel, Readonly<{
11358
+ getName: () => string;
11359
+ getSingularName: () => string;
11360
+ getDisplayName: () => string;
11361
+ getPrimaryKeyName: () => string;
11362
+ getModelDefinition: () => Readonly<{
11363
+ getPrimaryKeyName?: (() => string) | undefined;
11364
+ properties: any & {
11365
+ readonly [x: string]: Readonly<{
11366
+ getConfig: () => object;
11367
+ getChoices: () => readonly (string | number | boolean | null)[];
11368
+ getDefaultValue: () => any;
11369
+ getConstantValue: () => any;
11370
+ getPropertyType: () => string;
11371
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11372
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11373
+ }>;
11374
+ readonly id?: Readonly<{
11375
+ getConfig: () => object;
11376
+ getChoices: () => readonly (string | number | boolean | null)[];
11377
+ getDefaultValue: () => any;
11378
+ getConstantValue: () => any;
11379
+ getPropertyType: () => string;
11380
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11381
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11382
+ }> | undefined;
11383
+ };
11384
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
11385
+ singularName?: string | undefined;
11386
+ displayName?: string | undefined;
11387
+ }>;
11388
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
11389
+ getOptions: () => object & Readonly<{
11390
+ [s: string]: any;
11391
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
11392
+ }>;
11393
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
11394
+ }>, Readonly<{
11395
+ get: import("./interfaces").PropertyGetters<FunctionalModel> & {
11396
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
11397
+ };
11398
+ references: Readonly<{
11399
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
11400
+ }>;
11401
+ toObj: import("./interfaces").toObj<FunctionalModel>;
11402
+ getPrimaryKeyName: () => string;
11403
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
11404
+ validators: PropertyValidators<FunctionalModel, Readonly<{
11405
+ getName: () => string;
11406
+ getSingularName: () => string;
11407
+ getDisplayName: () => string;
11408
+ getPrimaryKeyName: () => string;
11409
+ getModelDefinition: () => Readonly<{
11410
+ getPrimaryKeyName?: (() => string) | undefined;
11411
+ properties: any & {
11412
+ readonly [x: string]: Readonly<{
11413
+ getConfig: () => object;
11414
+ getChoices: () => readonly (string | number | boolean | null)[];
11415
+ getDefaultValue: () => any;
11416
+ getConstantValue: () => any;
11417
+ getPropertyType: () => string;
11418
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11419
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11420
+ }>;
11421
+ readonly id?: Readonly<{
11422
+ getConfig: () => object;
11423
+ getChoices: () => readonly (string | number | boolean | null)[];
11424
+ getDefaultValue: () => any;
11425
+ getConstantValue: () => any;
11426
+ getPropertyType: () => string;
11427
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11428
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11429
+ }> | undefined;
11430
+ };
11431
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
11432
+ singularName?: string | undefined;
11433
+ displayName?: string | undefined;
11434
+ }>;
11435
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
11436
+ getOptions: () => object & Readonly<{
11437
+ [s: string]: any;
11438
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
11439
+ }>;
11440
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
11441
+ }>>;
11442
+ validate: (options?: object | undefined) => Promise<ModelErrors<FunctionalModel>>;
11443
+ getModel: () => Readonly<{
11444
+ getName: () => string;
11445
+ getSingularName: () => string;
11446
+ getDisplayName: () => string;
11447
+ getPrimaryKeyName: () => string;
11448
+ getModelDefinition: () => Readonly<{
11449
+ getPrimaryKeyName?: (() => string) | undefined;
11450
+ properties: any & {
11451
+ readonly [x: string]: Readonly<{
11452
+ getConfig: () => object;
11453
+ getChoices: () => readonly (string | number | boolean | null)[];
11454
+ getDefaultValue: () => any;
11455
+ getConstantValue: () => any;
11456
+ getPropertyType: () => string;
11457
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11458
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11459
+ }>;
11460
+ readonly id?: Readonly<{
11461
+ getConfig: () => object;
11462
+ getChoices: () => readonly (string | number | boolean | null)[];
11463
+ getDefaultValue: () => any;
11464
+ getConstantValue: () => any;
11465
+ getPropertyType: () => string;
11466
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11467
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11468
+ }> | undefined;
11469
+ };
11470
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
11471
+ singularName?: string | undefined;
11472
+ displayName?: string | undefined;
11473
+ }>;
11474
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
11475
+ getOptions: () => object & Readonly<{
11476
+ [s: string]: any;
11477
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
11478
+ }>;
11479
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
11480
+ }>;
11481
+ }>>) => PropertyValidator<FunctionalModel, Readonly<{
11482
+ getName: () => string;
11483
+ getSingularName: () => string;
11484
+ getDisplayName: () => string;
11485
+ getPrimaryKeyName: () => string;
11486
+ getModelDefinition: () => Readonly<{
11487
+ getPrimaryKeyName?: (() => string) | undefined;
11488
+ properties: any & {
11489
+ readonly [x: string]: Readonly<{
11490
+ getConfig: () => object;
11491
+ getChoices: () => readonly (string | number | boolean | null)[];
11492
+ getDefaultValue: () => any;
11493
+ getConstantValue: () => any;
11494
+ getPropertyType: () => string;
11495
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11496
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11497
+ }>;
11498
+ readonly id?: Readonly<{
11499
+ getConfig: () => object;
11500
+ getChoices: () => readonly (string | number | boolean | null)[];
11501
+ getDefaultValue: () => any;
11502
+ getConstantValue: () => any;
11503
+ getPropertyType: () => string;
11504
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11505
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11506
+ }> | undefined;
11507
+ };
11508
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
11509
+ singularName?: string | undefined;
11510
+ displayName?: string | undefined;
11511
+ }>;
11512
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
11513
+ getOptions: () => object & Readonly<{
11514
+ [s: string]: any;
11515
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
11516
+ }>;
11517
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
11518
+ }>, Readonly<{
11519
+ get: import("./interfaces").PropertyGetters<FunctionalModel> & {
11520
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
11521
+ };
11522
+ references: Readonly<{
11523
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
11524
+ }>;
11525
+ toObj: import("./interfaces").toObj<FunctionalModel>;
11526
+ getPrimaryKeyName: () => string;
11527
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
11528
+ validators: PropertyValidators<FunctionalModel, Readonly<{
11529
+ getName: () => string;
11530
+ getSingularName: () => string;
11531
+ getDisplayName: () => string;
11532
+ getPrimaryKeyName: () => string;
11533
+ getModelDefinition: () => Readonly<{
11534
+ getPrimaryKeyName?: (() => string) | undefined;
11535
+ properties: any & {
11536
+ readonly [x: string]: Readonly<{
11537
+ getConfig: () => object;
11538
+ getChoices: () => readonly (string | number | boolean | null)[];
11539
+ getDefaultValue: () => any;
11540
+ getConstantValue: () => any;
11541
+ getPropertyType: () => string;
11542
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11543
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11544
+ }>;
11545
+ readonly id?: Readonly<{
11546
+ getConfig: () => object;
11547
+ getChoices: () => readonly (string | number | boolean | null)[];
11548
+ getDefaultValue: () => any;
11549
+ getConstantValue: () => any;
11550
+ getPropertyType: () => string;
11551
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11552
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11553
+ }> | undefined;
11554
+ };
11555
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
11556
+ singularName?: string | undefined;
11557
+ displayName?: string | undefined;
11558
+ }>;
11559
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
11560
+ getOptions: () => object & Readonly<{
11561
+ [s: string]: any;
11562
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
11563
+ }>;
11564
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
11565
+ }>>;
11566
+ validate: (options?: object | undefined) => Promise<ModelErrors<FunctionalModel>>;
11567
+ getModel: () => Readonly<{
11568
+ getName: () => string;
11569
+ getSingularName: () => string;
11570
+ getDisplayName: () => string;
11571
+ getPrimaryKeyName: () => string;
11572
+ getModelDefinition: () => Readonly<{
11573
+ getPrimaryKeyName?: (() => string) | undefined;
11574
+ properties: any & {
11575
+ readonly [x: string]: Readonly<{
11576
+ getConfig: () => object;
11577
+ getChoices: () => readonly (string | number | boolean | null)[];
11578
+ getDefaultValue: () => any;
11579
+ getConstantValue: () => any;
11580
+ getPropertyType: () => string;
11581
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11582
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11583
+ }>;
11584
+ readonly id?: Readonly<{
11585
+ getConfig: () => object;
11586
+ getChoices: () => readonly (string | number | boolean | null)[];
11587
+ getDefaultValue: () => any;
11588
+ getConstantValue: () => any;
11589
+ getPropertyType: () => string;
11590
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11591
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11592
+ }> | undefined;
11593
+ };
11594
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
11595
+ singularName?: string | undefined;
11596
+ displayName?: string | undefined;
11597
+ }>;
11598
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
11599
+ getOptions: () => object & Readonly<{
11600
+ [s: string]: any;
11601
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
11602
+ }>;
11603
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
11604
+ }>;
11605
+ }>>;
11606
+ }> | Readonly<{
11607
+ getConfig: () => object;
11608
+ getChoices: () => readonly (string | number | boolean | null)[];
11609
+ getDefaultValue: () => number;
11610
+ getConstantValue: () => number;
11611
+ getPropertyType: () => string;
11612
+ createGetter: (value: number, modelData: FunctionalModel, modelInstance: Readonly<{
11613
+ get: import("./interfaces").PropertyGetters<FunctionalModel> & {
11614
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
11615
+ };
11616
+ references: Readonly<{
11617
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
11618
+ }>;
11619
+ toObj: import("./interfaces").toObj<FunctionalModel>;
11620
+ getPrimaryKeyName: () => string;
11621
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
11622
+ validators: PropertyValidators<FunctionalModel, Readonly<{
11623
+ getName: () => string;
11624
+ getSingularName: () => string;
11625
+ getDisplayName: () => string;
11626
+ getPrimaryKeyName: () => string;
11627
+ getModelDefinition: () => Readonly<{
11628
+ getPrimaryKeyName?: (() => string) | undefined;
11629
+ properties: any & {
11630
+ readonly [x: string]: Readonly<{
11631
+ getConfig: () => object;
11632
+ getChoices: () => readonly (string | number | boolean | null)[];
11633
+ getDefaultValue: () => any;
11634
+ getConstantValue: () => any;
11635
+ getPropertyType: () => string;
11636
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11637
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11638
+ }>;
11639
+ readonly id?: Readonly<{
11640
+ getConfig: () => object;
11641
+ getChoices: () => readonly (string | number | boolean | null)[];
11642
+ getDefaultValue: () => any;
11643
+ getConstantValue: () => any;
11644
+ getPropertyType: () => string;
11645
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11646
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11647
+ }> | undefined;
11648
+ };
11649
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
11650
+ singularName?: string | undefined;
11651
+ displayName?: string | undefined;
11652
+ }>;
11653
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
11654
+ getOptions: () => object & Readonly<{
11655
+ [s: string]: any;
11656
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
11657
+ }>;
11658
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
11659
+ }>>;
11660
+ validate: (options?: object | undefined) => Promise<ModelErrors<FunctionalModel>>;
11661
+ getModel: () => Readonly<{
11662
+ getName: () => string;
11663
+ getSingularName: () => string;
11664
+ getDisplayName: () => string;
11665
+ getPrimaryKeyName: () => string;
11666
+ getModelDefinition: () => Readonly<{
11667
+ getPrimaryKeyName?: (() => string) | undefined;
11668
+ properties: any & {
11669
+ readonly [x: string]: Readonly<{
11670
+ getConfig: () => object;
11671
+ getChoices: () => readonly (string | number | boolean | null)[];
11672
+ getDefaultValue: () => any;
11673
+ getConstantValue: () => any;
11674
+ getPropertyType: () => string;
11675
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11676
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11677
+ }>;
11678
+ readonly id?: Readonly<{
11679
+ getConfig: () => object;
11680
+ getChoices: () => readonly (string | number | boolean | null)[];
11681
+ getDefaultValue: () => any;
11682
+ getConstantValue: () => any;
11683
+ getPropertyType: () => string;
11684
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11685
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11686
+ }> | undefined;
11687
+ };
11688
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
11689
+ singularName?: string | undefined;
11690
+ displayName?: string | undefined;
11691
+ }>;
11692
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
11693
+ getOptions: () => object & Readonly<{
11694
+ [s: string]: any;
11695
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
11696
+ }>;
11697
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
11698
+ }>;
11699
+ }>) => ValueGetter<number, FunctionalModel, Readonly<{
11700
+ getName: () => string;
11701
+ getSingularName: () => string;
11702
+ getDisplayName: () => string;
11703
+ getPrimaryKeyName: () => string;
11704
+ getModelDefinition: () => Readonly<{
11705
+ getPrimaryKeyName?: (() => string) | undefined;
11706
+ properties: any & {
11707
+ readonly [x: string]: Readonly<{
11708
+ getConfig: () => object;
11709
+ getChoices: () => readonly (string | number | boolean | null)[];
11710
+ getDefaultValue: () => any;
11711
+ getConstantValue: () => any;
11712
+ getPropertyType: () => string;
11713
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11714
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11715
+ }>;
11716
+ readonly id?: Readonly<{
11717
+ getConfig: () => object;
11718
+ getChoices: () => readonly (string | number | boolean | null)[];
11719
+ getDefaultValue: () => any;
11720
+ getConstantValue: () => any;
11721
+ getPropertyType: () => string;
11722
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11723
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11724
+ }> | undefined;
11725
+ };
11726
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
11727
+ singularName?: string | undefined;
11728
+ displayName?: string | undefined;
11729
+ }>;
11730
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
11731
+ getOptions: () => object & Readonly<{
11732
+ [s: string]: any;
11733
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
11734
+ }>;
11735
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
11736
+ }>, Readonly<{
11737
+ get: import("./interfaces").PropertyGetters<FunctionalModel> & {
11738
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
11739
+ };
11740
+ references: Readonly<{
11741
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
11742
+ }>;
11743
+ toObj: import("./interfaces").toObj<FunctionalModel>;
11744
+ getPrimaryKeyName: () => string;
11745
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
11746
+ validators: PropertyValidators<FunctionalModel, Readonly<{
11747
+ getName: () => string;
11748
+ getSingularName: () => string;
11749
+ getDisplayName: () => string;
11750
+ getPrimaryKeyName: () => string;
11751
+ getModelDefinition: () => Readonly<{
11752
+ getPrimaryKeyName?: (() => string) | undefined;
11753
+ properties: any & {
11754
+ readonly [x: string]: Readonly<{
11755
+ getConfig: () => object;
11756
+ getChoices: () => readonly (string | number | boolean | null)[];
11757
+ getDefaultValue: () => any;
11758
+ getConstantValue: () => any;
11759
+ getPropertyType: () => string;
11760
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11761
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11762
+ }>;
11763
+ readonly id?: Readonly<{
11764
+ getConfig: () => object;
11765
+ getChoices: () => readonly (string | number | boolean | null)[];
11766
+ getDefaultValue: () => any;
11767
+ getConstantValue: () => any;
11768
+ getPropertyType: () => string;
11769
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11770
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11771
+ }> | undefined;
11772
+ };
11773
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
11774
+ singularName?: string | undefined;
11775
+ displayName?: string | undefined;
11776
+ }>;
11777
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
11778
+ getOptions: () => object & Readonly<{
11779
+ [s: string]: any;
11780
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
11781
+ }>;
11782
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
11783
+ }>>;
11784
+ validate: (options?: object | undefined) => Promise<ModelErrors<FunctionalModel>>;
11785
+ getModel: () => Readonly<{
11786
+ getName: () => string;
11787
+ getSingularName: () => string;
11788
+ getDisplayName: () => string;
11789
+ getPrimaryKeyName: () => string;
11790
+ getModelDefinition: () => Readonly<{
11791
+ getPrimaryKeyName?: (() => string) | undefined;
11792
+ properties: any & {
11793
+ readonly [x: string]: Readonly<{
11794
+ getConfig: () => object;
11795
+ getChoices: () => readonly (string | number | boolean | null)[];
11796
+ getDefaultValue: () => any;
11797
+ getConstantValue: () => any;
11798
+ getPropertyType: () => string;
11799
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11800
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11801
+ }>;
11802
+ readonly id?: Readonly<{
11803
+ getConfig: () => object;
11804
+ getChoices: () => readonly (string | number | boolean | null)[];
11805
+ getDefaultValue: () => any;
11806
+ getConstantValue: () => any;
11807
+ getPropertyType: () => string;
11808
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11809
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11810
+ }> | undefined;
11811
+ };
11812
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
11813
+ singularName?: string | undefined;
11814
+ displayName?: string | undefined;
11815
+ }>;
11816
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
11817
+ getOptions: () => object & Readonly<{
11818
+ [s: string]: any;
11819
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
11820
+ }>;
11821
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
11822
+ }>;
11823
+ }>>;
11824
+ getValidator: (valueGetter: ValueGetter<number, FunctionalModel, Readonly<{
11825
+ getName: () => string;
11826
+ getSingularName: () => string;
11827
+ getDisplayName: () => string;
11828
+ getPrimaryKeyName: () => string;
11829
+ getModelDefinition: () => Readonly<{
11830
+ getPrimaryKeyName?: (() => string) | undefined;
11831
+ properties: any & {
11832
+ readonly [x: string]: Readonly<{
11833
+ getConfig: () => object;
11834
+ getChoices: () => readonly (string | number | boolean | null)[];
11835
+ getDefaultValue: () => any;
11836
+ getConstantValue: () => any;
11837
+ getPropertyType: () => string;
11838
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11839
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11840
+ }>;
11841
+ readonly id?: Readonly<{
11842
+ getConfig: () => object;
11843
+ getChoices: () => readonly (string | number | boolean | null)[];
11844
+ getDefaultValue: () => any;
11845
+ getConstantValue: () => any;
11846
+ getPropertyType: () => string;
11847
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11848
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11849
+ }> | undefined;
11850
+ };
11851
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
11852
+ singularName?: string | undefined;
11853
+ displayName?: string | undefined;
11854
+ }>;
11855
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
11856
+ getOptions: () => object & Readonly<{
11857
+ [s: string]: any;
11858
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
11859
+ }>;
11860
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
11861
+ }>, Readonly<{
11862
+ get: import("./interfaces").PropertyGetters<FunctionalModel> & {
11863
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
11864
+ };
11865
+ references: Readonly<{
11866
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
11867
+ }>;
11868
+ toObj: import("./interfaces").toObj<FunctionalModel>;
11869
+ getPrimaryKeyName: () => string;
11870
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
11871
+ validators: PropertyValidators<FunctionalModel, Readonly<{
11872
+ getName: () => string;
11873
+ getSingularName: () => string;
11874
+ getDisplayName: () => string;
11875
+ getPrimaryKeyName: () => string;
11876
+ getModelDefinition: () => Readonly<{
11877
+ getPrimaryKeyName?: (() => string) | undefined;
11878
+ properties: any & {
11879
+ readonly [x: string]: Readonly<{
11880
+ getConfig: () => object;
11881
+ getChoices: () => readonly (string | number | boolean | null)[];
11882
+ getDefaultValue: () => any;
11883
+ getConstantValue: () => any;
11884
+ getPropertyType: () => string;
11885
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11886
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11887
+ }>;
11888
+ readonly id?: Readonly<{
11889
+ getConfig: () => object;
11890
+ getChoices: () => readonly (string | number | boolean | null)[];
11891
+ getDefaultValue: () => any;
11892
+ getConstantValue: () => any;
11893
+ getPropertyType: () => string;
11894
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11895
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11896
+ }> | undefined;
11897
+ };
11898
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
11899
+ singularName?: string | undefined;
11900
+ displayName?: string | undefined;
11901
+ }>;
11902
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
11903
+ getOptions: () => object & Readonly<{
11904
+ [s: string]: any;
11905
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
11906
+ }>;
11907
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
11908
+ }>>;
11909
+ validate: (options?: object | undefined) => Promise<ModelErrors<FunctionalModel>>;
11910
+ getModel: () => Readonly<{
11911
+ getName: () => string;
11912
+ getSingularName: () => string;
11913
+ getDisplayName: () => string;
11914
+ getPrimaryKeyName: () => string;
11915
+ getModelDefinition: () => Readonly<{
11916
+ getPrimaryKeyName?: (() => string) | undefined;
11917
+ properties: any & {
11918
+ readonly [x: string]: Readonly<{
11919
+ getConfig: () => object;
11920
+ getChoices: () => readonly (string | number | boolean | null)[];
11921
+ getDefaultValue: () => any;
11922
+ getConstantValue: () => any;
11923
+ getPropertyType: () => string;
11924
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11925
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11926
+ }>;
11927
+ readonly id?: Readonly<{
11928
+ getConfig: () => object;
11929
+ getChoices: () => readonly (string | number | boolean | null)[];
11930
+ getDefaultValue: () => any;
11931
+ getConstantValue: () => any;
11932
+ getPropertyType: () => string;
11933
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11934
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11935
+ }> | undefined;
11936
+ };
11937
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
11938
+ singularName?: string | undefined;
11939
+ displayName?: string | undefined;
11940
+ }>;
11941
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
11942
+ getOptions: () => object & Readonly<{
11943
+ [s: string]: any;
11944
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
11945
+ }>;
11946
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
11947
+ }>;
11948
+ }>>) => PropertyValidator<FunctionalModel, Readonly<{
11949
+ getName: () => string;
11950
+ getSingularName: () => string;
11951
+ getDisplayName: () => string;
11952
+ getPrimaryKeyName: () => string;
11953
+ getModelDefinition: () => Readonly<{
11954
+ getPrimaryKeyName?: (() => string) | undefined;
11955
+ properties: any & {
11956
+ readonly [x: string]: Readonly<{
11957
+ getConfig: () => object;
11958
+ getChoices: () => readonly (string | number | boolean | null)[];
11959
+ getDefaultValue: () => any;
11960
+ getConstantValue: () => any;
11961
+ getPropertyType: () => string;
11962
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11963
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11964
+ }>;
11965
+ readonly id?: Readonly<{
11966
+ getConfig: () => object;
11967
+ getChoices: () => readonly (string | number | boolean | null)[];
11968
+ getDefaultValue: () => any;
11969
+ getConstantValue: () => any;
11970
+ getPropertyType: () => string;
11971
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
11972
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
11973
+ }> | undefined;
11974
+ };
11975
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
11976
+ singularName?: string | undefined;
11977
+ displayName?: string | undefined;
11978
+ }>;
11979
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
11980
+ getOptions: () => object & Readonly<{
11981
+ [s: string]: any;
11982
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
11983
+ }>;
11984
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
11985
+ }>, Readonly<{
11986
+ get: import("./interfaces").PropertyGetters<FunctionalModel> & {
11987
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
11988
+ };
11989
+ references: Readonly<{
11990
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
11991
+ }>;
11992
+ toObj: import("./interfaces").toObj<FunctionalModel>;
11993
+ getPrimaryKeyName: () => string;
11994
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
11995
+ validators: PropertyValidators<FunctionalModel, Readonly<{
11996
+ getName: () => string;
11997
+ getSingularName: () => string;
11998
+ getDisplayName: () => string;
11999
+ getPrimaryKeyName: () => string;
12000
+ getModelDefinition: () => Readonly<{
12001
+ getPrimaryKeyName?: (() => string) | undefined;
12002
+ properties: any & {
12003
+ readonly [x: string]: Readonly<{
12004
+ getConfig: () => object;
12005
+ getChoices: () => readonly (string | number | boolean | null)[];
12006
+ getDefaultValue: () => any;
12007
+ getConstantValue: () => any;
12008
+ getPropertyType: () => string;
12009
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
12010
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
12011
+ }>;
12012
+ readonly id?: Readonly<{
12013
+ getConfig: () => object;
12014
+ getChoices: () => readonly (string | number | boolean | null)[];
12015
+ getDefaultValue: () => any;
12016
+ getConstantValue: () => any;
12017
+ getPropertyType: () => string;
12018
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
12019
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
12020
+ }> | undefined;
12021
+ };
12022
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
12023
+ singularName?: string | undefined;
12024
+ displayName?: string | undefined;
12025
+ }>;
12026
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
12027
+ getOptions: () => object & Readonly<{
12028
+ [s: string]: any;
12029
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
12030
+ }>;
12031
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
12032
+ }>>;
12033
+ validate: (options?: object | undefined) => Promise<ModelErrors<FunctionalModel>>;
12034
+ getModel: () => Readonly<{
12035
+ getName: () => string;
12036
+ getSingularName: () => string;
12037
+ getDisplayName: () => string;
12038
+ getPrimaryKeyName: () => string;
12039
+ getModelDefinition: () => Readonly<{
12040
+ getPrimaryKeyName?: (() => string) | undefined;
12041
+ properties: any & {
12042
+ readonly [x: string]: Readonly<{
12043
+ getConfig: () => object;
12044
+ getChoices: () => readonly (string | number | boolean | null)[];
12045
+ getDefaultValue: () => any;
12046
+ getConstantValue: () => any;
12047
+ getPropertyType: () => string;
12048
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
12049
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
12050
+ }>;
12051
+ readonly id?: Readonly<{
12052
+ getConfig: () => object;
12053
+ getChoices: () => readonly (string | number | boolean | null)[];
12054
+ getDefaultValue: () => any;
12055
+ getConstantValue: () => any;
12056
+ getPropertyType: () => string;
12057
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
12058
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
12059
+ }> | undefined;
12060
+ };
12061
+ modelValidators?: readonly ModelValidatorComponent<FunctionalModel, Readonly<any>, Readonly<any>>[] | undefined;
12062
+ singularName?: string | undefined;
12063
+ displayName?: string | undefined;
12064
+ }>;
12065
+ getPrimaryKey: (t: FunctionalModel | import("./interfaces").TypedJsonObj<FunctionalModel>) => import("./interfaces").PrimaryKeyType;
12066
+ getOptions: () => object & Readonly<{
12067
+ [s: string]: any;
12068
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<any>) => void>>;
12069
+ }>;
12070
+ create: (data: import("./interfaces").CreateParams<FunctionalModel>) => Readonly<any>;
12071
+ }>;
12072
+ }>>;
12073
+ }>) | undefined;
12074
+ } & { readonly [P in keyof T as T[P] extends Arrayable<FunctionalValue> ? P : never]: Readonly<{
12075
+ getConfig: () => object;
12076
+ getChoices: () => readonly (string | number | boolean | null)[];
12077
+ getDefaultValue: () => any;
12078
+ getConstantValue: () => any;
12079
+ getPropertyType: () => string;
12080
+ createGetter: (value: any, modelData: FunctionalModel, modelInstance: Readonly<any>) => ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>;
12081
+ getValidator: (valueGetter: ValueGetter<any, FunctionalModel, Readonly<any>, Readonly<any>>) => PropertyValidator<FunctionalModel, Readonly<any>, Readonly<any>>;
12082
+ }>; };
12083
+ modelValidators?: readonly ModelValidatorComponent<T, Readonly<any>, Readonly<{
12084
+ get: import("./interfaces").PropertyGetters<T> & {
12085
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
12086
+ };
12087
+ references: Readonly<{
12088
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
12089
+ }>;
12090
+ toObj: import("./interfaces").toObj<T>;
12091
+ getPrimaryKeyName: () => string;
12092
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
12093
+ validators: PropertyValidators<T, Readonly<any>>;
12094
+ validate: (options?: object | undefined) => Promise<ModelErrors<T>>;
12095
+ getModel: () => Readonly<any>;
12096
+ }>>[] | undefined;
12097
+ singularName?: string | undefined;
12098
+ displayName?: string | undefined;
12099
+ }>;
12100
+ getPrimaryKey: (t: T | import("./interfaces").TypedJsonObj<T>) => import("./interfaces").PrimaryKeyType;
12101
+ getOptions: () => object & Readonly<{
12102
+ [s: string]: any;
12103
+ instanceCreatedCallback: import("./interfaces").Nullable<Arrayable<(instance: Readonly<{
12104
+ get: import("./interfaces").PropertyGetters<T> & {
12105
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
12106
+ };
12107
+ references: Readonly<{
12108
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
12109
+ }>;
12110
+ toObj: import("./interfaces").toObj<T>;
12111
+ getPrimaryKeyName: () => string;
12112
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
12113
+ validators: PropertyValidators<T, Readonly<any>>;
12114
+ validate: (options?: object | undefined) => Promise<ModelErrors<T>>;
12115
+ getModel: () => Readonly<any>;
12116
+ }>) => void>>;
12117
+ }>;
12118
+ create: (data: import("./interfaces").CreateParams<T>) => Readonly<{
12119
+ get: import("./interfaces").PropertyGetters<T> & {
12120
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
12121
+ };
12122
+ references: Readonly<{
12123
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
12124
+ }>;
12125
+ toObj: import("./interfaces").toObj<T>;
12126
+ getPrimaryKeyName: () => string;
12127
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
12128
+ validators: PropertyValidators<T, Readonly<any>>;
12129
+ validate: (options?: object | undefined) => Promise<ModelErrors<T>>;
12130
+ getModel: () => Readonly<any>;
12131
+ }>;
12132
+ }>, TModelInstance extends Readonly<{
12133
+ get: import("./interfaces").PropertyGetters<T> & {
12134
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
12135
+ };
12136
+ references: Readonly<{
12137
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
12138
+ }>;
12139
+ toObj: import("./interfaces").toObj<T>;
12140
+ getPrimaryKeyName: () => string;
12141
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
12142
+ validators: PropertyValidators<T, TModel>;
12143
+ validate: (options?: object | undefined) => Promise<ModelErrors<T>>;
12144
+ getModel: () => TModel;
12145
+ }> = Readonly<{
12146
+ get: import("./interfaces").PropertyGetters<T> & {
12147
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
12148
+ };
12149
+ references: Readonly<{
12150
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
12151
+ }>;
12152
+ toObj: import("./interfaces").toObj<T>;
12153
+ getPrimaryKeyName: () => string;
12154
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
12155
+ validators: PropertyValidators<T, TModel>;
12156
+ validate: (options?: object | undefined) => Promise<ModelErrors<T>>;
12157
+ getModel: () => TModel;
12158
+ }>>(referencedModel: MaybeFunction<TModel>) => PropertyValidatorComponentTypeAdvanced<Readonly<{
12159
+ get: import("./interfaces").PropertyGetters<T> & {
12160
+ id?: (() => import("./interfaces").MaybePromise<import("./interfaces").PrimaryKeyType>) | undefined;
12161
+ };
12162
+ references: Readonly<{
12163
+ [s: string]: () => import("./interfaces").Maybe<import("./interfaces").PrimaryKeyType>;
12164
+ }>;
12165
+ toObj: import("./interfaces").toObj<T>;
12166
+ getPrimaryKeyName: () => string;
12167
+ getPrimaryKey: () => import("./interfaces").PrimaryKeyType;
12168
+ validators: PropertyValidators<T, TModel>;
12169
+ validate: (options?: object | undefined) => Promise<ModelErrors<T>>;
12170
+ getModel: () => TModel;
12171
+ }>, T, TModel, TModelInstance>;
12172
+ export { isNumber, isBoolean, isString, isInteger, isType, isDate, isArray, isRequired, maxNumber, minNumber, choices, maxTextLength, minTextLength, meetsRegex, aggregateValidator, emptyValidator, createPropertyValidator, createModelValidator, arrayType, isValid, TYPE_PRIMITIVES, referenceTypeMatch, };