@loomcore/common 0.0.64 → 0.0.65
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.
|
@@ -8,7 +8,7 @@ export interface IPersonModel extends IEntity, IAuditable {
|
|
|
8
8
|
isClient: boolean;
|
|
9
9
|
isEmployee: boolean;
|
|
10
10
|
dateOfBirth?: Date;
|
|
11
|
-
|
|
11
|
+
ssn?: string;
|
|
12
12
|
extendedTypes?: number;
|
|
13
13
|
}
|
|
14
14
|
export declare const personSchema: import("@sinclair/typebox").TObject<{
|
|
@@ -20,7 +20,7 @@ export declare const personSchema: import("@sinclair/typebox").TObject<{
|
|
|
20
20
|
isClient: import("@sinclair/typebox").TBoolean;
|
|
21
21
|
isEmployee: import("@sinclair/typebox").TBoolean;
|
|
22
22
|
dateOfBirth: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TTransform<import("@sinclair/typebox").TString, Date>>;
|
|
23
|
-
|
|
23
|
+
ssn: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
24
24
|
extendedTypes: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNumber>;
|
|
25
25
|
}>;
|
|
26
26
|
export declare const personPublicSchema: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TObject<{
|
|
@@ -10,11 +10,11 @@ export const personSchema = Type.Object({
|
|
|
10
10
|
isClient: Type.Boolean(),
|
|
11
11
|
isEmployee: Type.Boolean(),
|
|
12
12
|
dateOfBirth: Type.Optional(TypeboxIsoDate({ title: 'Date of Birth' })),
|
|
13
|
-
|
|
13
|
+
ssn: Type.Optional(Type.String()),
|
|
14
14
|
extendedTypes: Type.Optional(Type.Number()),
|
|
15
15
|
});
|
|
16
16
|
export const personPublicSchema = Type.Intersect([
|
|
17
|
-
Type.Omit(personSchema, ['
|
|
17
|
+
Type.Omit(personSchema, ['ssn']),
|
|
18
18
|
Type.Object({
|
|
19
19
|
last4ssn: Type.Optional(Type.String()),
|
|
20
20
|
}),
|
package/package.json
CHANGED