@loomcore/common 0.0.46 → 0.0.47
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.
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { IAuditable, IEntity } from "@loomcore/common/models";
|
|
2
2
|
export interface IPersonModel extends IEntity, IAuditable {
|
|
3
|
-
externalId
|
|
3
|
+
externalId?: string;
|
|
4
4
|
firstName: string;
|
|
5
|
-
middleName
|
|
5
|
+
middleName?: string;
|
|
6
6
|
lastName: string;
|
|
7
7
|
isAgent: boolean;
|
|
8
8
|
isClient: boolean;
|
|
9
9
|
isEmployee: boolean;
|
|
10
|
-
dateOfBirth
|
|
11
|
-
extendedTypes
|
|
10
|
+
dateOfBirth?: Date;
|
|
11
|
+
extendedTypes?: number;
|
|
12
12
|
}
|
|
13
13
|
export declare const personSchema: import("@sinclair/typebox").TObject<{
|
|
14
14
|
externalId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -19,6 +19,6 @@ export declare const personSchema: import("@sinclair/typebox").TObject<{
|
|
|
19
19
|
isClient: import("@sinclair/typebox").TBoolean;
|
|
20
20
|
isEmployee: import("@sinclair/typebox").TBoolean;
|
|
21
21
|
dateOfBirth: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
22
|
-
extendedTypes: import("@sinclair/typebox").TNumber
|
|
22
|
+
extendedTypes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
23
23
|
}>;
|
|
24
24
|
export declare const personModelSpec: import("@loomcore/common/models").IModelSpec<import("@sinclair/typebox").TSchema>;
|
|
@@ -9,6 +9,6 @@ export const personSchema = Type.Object({
|
|
|
9
9
|
isClient: Type.Boolean(),
|
|
10
10
|
isEmployee: Type.Boolean(),
|
|
11
11
|
dateOfBirth: Type.Optional(Type.String()),
|
|
12
|
-
extendedTypes: Type.Number(),
|
|
12
|
+
extendedTypes: Type.Optional(Type.Number()),
|
|
13
13
|
});
|
|
14
14
|
export const personModelSpec = entityUtils.getModelSpec(personSchema, { isAuditable: true });
|
package/package.json
CHANGED