Comparing version 1.15.13 to 1.15.14
{ | ||
"name": "fib-app", | ||
"version": "1.15.13", | ||
"version": "1.15.14", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
@@ -1,2 +0,2 @@ | ||
import type { FxOrmNS } from '@fxjs/orm'; | ||
import type { FxOrmNS, FxOrmModel } from '@fxjs/orm'; | ||
import type { FibApp } from '../Typo/app'; | ||
@@ -7,4 +7,4 @@ /** | ||
export default function (ormInstance: FibApp.FibAppORM, opts: FxOrmNS.ModelOptions): { | ||
beforeDefine: (name: string, properties: Record<string, FxOrmNS.ModelPropertyDefinition>, opts: FxOrmNS.ModelOptions) => void; | ||
beforeDefine: (name: string, properties: Record<string, FxOrmModel.ModelPropertyDefinition>, opts: FxOrmNS.ModelOptions) => void; | ||
define: (m: FibApp.FibAppORMModel) => FibApp.FibAppORMModel; | ||
}; |
@@ -1,10 +0,10 @@ | ||
import { FxOrmNS, FxOrmModel } from '@fxjs/orm'; | ||
import { FxOrmNS, FxOrmModel, FxOrmProperty } from '@fxjs/orm'; | ||
interface PluginOptions__Timestamp { | ||
createdPropertyName?: string | false; | ||
createdProperty?: FxOrmNS.OrigDetailedModelProperty; | ||
createdProperty?: FxOrmProperty.NormalizedProperty; | ||
updatedPropertyName?: string | false; | ||
updatedProperty?: FxOrmNS.OrigDetailedModelProperty; | ||
updatedProperty?: FxOrmProperty.NormalizedProperty; | ||
expiredPropertyName?: string | false; | ||
expiredProperty?: FxOrmNS.OrigDetailedModelProperty; | ||
type?: FxOrmNS.OrigDetailedModelProperty; | ||
expiredProperty?: FxOrmProperty.NormalizedProperty; | ||
type?: FxOrmProperty.NormalizedProperty; | ||
now?: { | ||
@@ -18,5 +18,5 @@ (): Date; | ||
export default function (orm: FxOrmNS.ORM, plugin_opts?: PluginOptions__Timestamp): { | ||
beforeDefine: (name: string, properties: Record<string, FxOrmNS.ModelPropertyDefinition>, opts: FxOrmNS.ModelOptions) => void; | ||
beforeDefine: (name: string, properties: Record<string, FxOrmModel.ModelPropertyDefinition>, opts: FxOrmNS.ModelOptions) => void; | ||
define(model: FxOrmModel.Model): void; | ||
}; | ||
export {}; |
@@ -98,3 +98,3 @@ /// <reference types="fib-rpc" /> | ||
} | ||
interface AppSpecialDateProperty extends FxOrmNS.ModelPropertyDefinition { | ||
interface AppSpecialDateProperty extends FxOrmModel.ModelPropertyDefinition { | ||
type: 'date'; | ||
@@ -101,0 +101,0 @@ time?: true; |
189893